mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Add support for deCONZ alarm events in logbook (#49652)
* Add support for alarm events in logbook * Update homeassistant/components/deconz/alarm_control_panel.py Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
This commit is contained in:
@@ -265,7 +265,19 @@ async def test_deconz_alarm_events(hass, aioclient_mock, mock_deconz_websocket):
|
||||
CONF_CODE: "1234",
|
||||
}
|
||||
|
||||
# Unsupported event
|
||||
# Unsupported events
|
||||
|
||||
event_changed_sensor = {
|
||||
"t": "event",
|
||||
"e": "changed",
|
||||
"r": "sensors",
|
||||
"id": "1",
|
||||
"state": {"action": "unsupported,1234,1"},
|
||||
}
|
||||
await mock_deconz_websocket(data=event_changed_sensor)
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert len(captured_events) == 1
|
||||
|
||||
event_changed_sensor = {
|
||||
"t": "event",
|
||||
|
||||
Reference in New Issue
Block a user