Fix slow config_flow test in AVM Fritz!SmartHome (#60348)

This commit is contained in:
Michael
2021-11-25 18:48:17 +01:00
committed by GitHub
parent b724672dd8
commit 78305ac6ae

View File

@ -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