Axis component reflect device availability (#22401)
This commit is contained in:
1 parent
f4625fd561
commit
5f6037d563
10 files changed
+69
-28
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user