Axis component reflect device availability (#22401)
This commit is contained in:
parent
f4625fd561
commit
5f6037d563
10 changed files with 69 additions and 28 deletions
|
@ -31,8 +31,7 @@ async def test_flow_works(hass):
|
|||
|
||||
with patch('axis.AxisDevice') as mock_device:
|
||||
def mock_constructor(
|
||||
loop, host, username, password, port, web_proto, event_types,
|
||||
signal):
|
||||
loop, host, username, password, port, web_proto):
|
||||
"""Fake the controller constructor."""
|
||||
mock_device.loop = loop
|
||||
mock_device.host = host
|
||||
|
@ -189,8 +188,7 @@ async def test_discovery_flow_known_device(hass):
|
|||
config_flow.CONF_PORT: 80}}), \
|
||||
patch('axis.AxisDevice') as mock_device:
|
||||
def mock_constructor(
|
||||
loop, host, username, password, port, web_proto, event_types,
|
||||
signal):
|
||||
loop, host, username, password, port, web_proto):
|
||||
"""Fake the controller constructor."""
|
||||
mock_device.loop = loop
|
||||
mock_device.host = host
|
||||
|
@ -277,8 +275,7 @@ async def test_import_flow_works(hass):
|
|||
|
||||
with patch('axis.AxisDevice') as mock_device:
|
||||
def mock_constructor(
|
||||
loop, host, username, password, port, web_proto, event_types,
|
||||
signal):
|
||||
loop, host, username, password, port, web_proto):
|
||||
"""Fake the controller constructor."""
|
||||
mock_device.loop = loop
|
||||
mock_device.host = host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue