fix cloud

This commit is contained in:
J. Nick Koston
2024-03-09 22:58:32 -10:00
parent 3fbab042fc
commit 5eb3ce695d
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ def async_at_start(
"""
def _is_running(hass: HomeAssistant) -> bool:
return hass.is_running
return hass.state is CoreState.running
return _async_at_core_state(
hass, at_start_cb, EVENT_HOMEASSISTANT_START, _is_running

View File

@@ -346,7 +346,7 @@ async def test_sync_google_on_home_assistant_start(
await config.async_initialize()
assert len(mock_sync.mock_calls) == 0
hass.bus.async_fire(EVENT_HOMEASSISTANT_STARTED)
hass.bus.async_fire(EVENT_HOMEASSISTANT_START)
await hass.async_block_till_done()
assert len(mock_sync.mock_calls) == 1