Run entity registry write_unavailable_states immediately at start (#113647)

This commit is contained in:
J. Nick Koston 2024-03-17 08:15:41 -10:00 committed by GitHub
parent dbbd6fff01
commit 091199d24a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -1518,7 +1518,9 @@ def _async_setup_entity_restore(hass: HomeAssistant, registry: EntityRegistry) -
entry.write_unavailable_state(hass)
hass.bus.async_listen(EVENT_HOMEASSISTANT_START, _write_unavailable_states)
hass.bus.async_listen(
EVENT_HOMEASSISTANT_START, _write_unavailable_states, run_immediately=True
)
async def async_migrate_entries(