Fix slow config_flow test in devolo Home Network (#60364)

This commit is contained in:
Michael 2021-11-26 00:14:15 +01:00 committed by GitHub
parent 22bdd38583
commit c9dc3a61af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,10 @@ async def test_zeroconf(hass: HomeAssistant):
== DISCOVERY_INFO["hostname"].split(".", maxsplit=1)[0]
)
with patch(
"homeassistant.components.devolo_home_network.async_setup_entry",
return_value=True,
):
result2 = await hass.config_entries.flow.async_configure(
result["flow_id"],
{},
@ -131,6 +135,10 @@ async def test_abort_if_configued(hass: HomeAssistant):
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_USER}
)
with patch(
"homeassistant.components.devolo_home_network.async_setup_entry",
return_value=True,
):
await hass.config_entries.flow.async_configure(
result["flow_id"],
{