mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
fix cloud
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user