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

Ensure ESPHome dashboard connection recovers if its down when core starts (#96449)

This commit is contained in:
J. Nick Koston
2023-07-12 14:37:28 -10:00
committed by GitHub
parent 709d5241ec
commit 7009683226
2 changed files with 3 additions and 8 deletions

View File

@@ -58,7 +58,9 @@ async def test_setup_dashboard_fails(
assert mock_config_entry.state == ConfigEntryState.LOADED
assert mock_get_devices.call_count == 1
assert dashboard.STORAGE_KEY not in hass_storage
# The dashboard addon might recover later so we still
# allow it to be set up.
assert dashboard.STORAGE_KEY in hass_storage
async def test_setup_dashboard_fails_when_already_setup(