From c486baccaa043ef0bba5fb62651fd173f82791be Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Fri, 26 Jul 2024 23:33:37 +0200 Subject: [PATCH] Patch import where its used in Axis hub test (#122674) --- tests/components/axis/test_hub.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/components/axis/test_hub.py b/tests/components/axis/test_hub.py index d0911ed6adb..74cdb0164cd 100644 --- a/tests/components/axis/test_hub.py +++ b/tests/components/axis/test_hub.py @@ -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