Axis component reflect device availability (#22401)

This commit is contained in:
Robert Svensson authored and GitHub committed 2019-03-29 15:20:12 +01:00
1 parent f4625fd561
commit 5f6037d563
10 files changed
+69 -28

No files matched your search

+1 -1
View File
@@ -94,7 +94,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_signal_callback(action='add', event='event')
axis_device.async_event_callback(action='add', event='event')
await hass.async_block_till_done()
assert len(mock_dispatch_send.mock_calls) == 1