mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 05:35:11 +02:00
Fix unload race in unifiprotect tests (#81361)
This commit is contained in:
@@ -261,7 +261,11 @@ async def test_form_options(hass: HomeAssistant, ufp_client: ProtectApiClient) -
|
|||||||
|
|
||||||
result2 = await hass.config_entries.options.async_configure(
|
result2 = await hass.config_entries.options.async_configure(
|
||||||
result["flow_id"],
|
result["flow_id"],
|
||||||
{CONF_DISABLE_RTSP: True, CONF_ALL_UPDATES: True, CONF_OVERRIDE_CHOST: True},
|
{
|
||||||
|
CONF_DISABLE_RTSP: True,
|
||||||
|
CONF_ALL_UPDATES: True,
|
||||||
|
CONF_OVERRIDE_CHOST: True,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
assert result2["type"] == FlowResultType.CREATE_ENTRY
|
assert result2["type"] == FlowResultType.CREATE_ENTRY
|
||||||
@@ -271,6 +275,7 @@ async def test_form_options(hass: HomeAssistant, ufp_client: ProtectApiClient) -
|
|||||||
"override_connection_host": True,
|
"override_connection_host": True,
|
||||||
"max_media": 1000,
|
"max_media": 1000,
|
||||||
}
|
}
|
||||||
|
await hass.config_entries.async_unload(mock_config.entry_id)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
Reference in New Issue
Block a user