1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Axis change how new event is signalled (#23152)

This commit is contained in:
Robert Svensson
2019-04-17 15:21:42 +02:00
committed by GitHub
parent e114ae9b53
commit 0b7e62f737
6 changed files with 10 additions and 9 deletions

View File

@@ -167,7 +167,7 @@ async def test_new_event_sends_signal(hass):
axis_device = device.AxisNetworkDevice(hass, entry)
with patch.object(device, 'async_dispatcher_send') as mock_dispatch_send:
axis_device.async_event_callback(action='add', event='event')
axis_device.async_event_callback(action='add', event_id='event')
await hass.async_block_till_done()
assert len(mock_dispatch_send.mock_calls) == 1