mirror of
https://github.com/home-assistant/core.git
synced 2025-12-23 20:39:01 +00:00
Prevent live logbook from sending state changed events when we only want device ids (#72780)
This commit is contained in:
@@ -1743,6 +1743,8 @@ async def test_subscribe_unsubscribe_logbook_stream_device(
|
||||
assert msg["type"] == "event"
|
||||
assert msg["event"]["events"] == []
|
||||
|
||||
hass.states.async_set("binary_sensor.should_not_appear", STATE_ON)
|
||||
hass.states.async_set("binary_sensor.should_not_appear", STATE_OFF)
|
||||
hass.bus.async_fire("mock_event", {"device_id": device.id})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user