mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Patch import where its used in Axis hub test (#122674)
This commit is contained in:
parent
57554aba57
commit
c486baccaa
@ -200,7 +200,10 @@ async def test_get_axis_api_errors(
|
||||
) -> None:
|
||||
"""Failed setup schedules a retry of setup."""
|
||||
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.async_block_till_done()
|
||||
assert config_entry.state == state
|
||||
|
Loading…
x
Reference in New Issue
Block a user