mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 14:08:21 +00:00
deCONZ - Fix magic cube awake gesture (#31403)
This commit is contained in:
@@ -101,7 +101,7 @@ async def test_deconz_events(hass):
|
||||
mock_listener = Mock()
|
||||
unsub = hass.bus.async_listen(CONF_DECONZ_EVENT, mock_listener)
|
||||
|
||||
gateway.api.sensors["4"].async_update({"state": {"gesture": 2}})
|
||||
gateway.api.sensors["4"].async_update({"state": {"gesture": 0}})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert len(mock_listener.mock_calls) == 1
|
||||
@@ -109,7 +109,7 @@ async def test_deconz_events(hass):
|
||||
"id": "switch_4",
|
||||
"unique_id": "00:00:00:00:00:00:00:04",
|
||||
"event": 1000,
|
||||
"gesture": 2,
|
||||
"gesture": 0,
|
||||
}
|
||||
|
||||
unsub()
|
||||
|
||||
Reference in New Issue
Block a user