From 78305ac6ae66d03a1cff7c853c61381c56ad29fc Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Thu, 25 Nov 2021 18:48:17 +0100 Subject: [PATCH] Fix slow config_flow test in AVM Fritz!SmartHome (#60348) --- tests/components/fritzbox/test_config_flow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/components/fritzbox/test_config_flow.py b/tests/components/fritzbox/test_config_flow.py index ce38a1a38c8..a3b258d405e 100644 --- a/tests/components/fritzbox/test_config_flow.py +++ b/tests/components/fritzbox/test_config_flow.py @@ -38,7 +38,9 @@ MOCK_SSDP_DATA = ssdp.SsdpServiceInfo( @pytest.fixture(name="fritz") def fritz_fixture() -> Mock: """Patch libraries.""" - with patch("homeassistant.components.fritzbox.config_flow.Fritzhome") as fritz: + with patch("homeassistant.components.fritzbox.async_setup_entry"), patch( + "homeassistant.components.fritzbox.config_flow.Fritzhome" + ) as fritz: yield fritz