Patch import where its used in Axis hub test (#122674)
This commit is contained in:
parent
57554aba57
commit
c486baccaa
1 changed files with 4 additions and 1 deletions
|
@ -200,7 +200,10 @@ async def test_get_axis_api_errors(
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Failed setup schedules a retry of setup."""
|
"""Failed setup schedules a retry of setup."""
|
||||||
config_entry.add_to_hass(hass)
|
config_entry.add_to_hass(hass)
|
||||||
with patch("axis.interfaces.vapix.Vapix.initialize", side_effect=side_effect):
|
with patch(
|
||||||
|
"homeassistant.components.axis.hub.api.axis.interfaces.vapix.Vapix.initialize",
|
||||||
|
side_effect=side_effect,
|
||||||
|
):
|
||||||
await hass.config_entries.async_setup(config_entry.entry_id)
|
await hass.config_entries.async_setup(config_entry.entry_id)
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
assert config_entry.state == state
|
assert config_entry.state == state
|
||||||
|
|
Loading…
Add table
Reference in a new issue