1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Only wait for import flows in setup of there is a config flow (#113780)

This commit is contained in:
J. Nick Koston
2024-03-19 10:38:27 -10:00
committed by GitHub
parent c52ee2a898
commit 879e5bc961
3 changed files with 14 additions and 6 deletions

View File

@@ -926,6 +926,8 @@ async def test_websocket_update_preferences_alexa_report_state(
client = await hass_ws_client(hass)
with patch(
"homeassistant.components.cloud.alexa_config.CloudAlexaConfig.async_sync_entities"
), patch(
(
"homeassistant.components.cloud.alexa_config.CloudAlexaConfig"
".async_get_access_token"
@@ -941,6 +943,7 @@ async def test_websocket_update_preferences_alexa_report_state(
response = await client.receive_json()
set_authorized_mock.assert_called_once_with(True)
await hass.async_block_till_done()
assert response["success"]