mirror of https://github.com/home-assistant/core
Run entity registry write_unavailable_states immediately at start (#113647)
This commit is contained in:
parent
dbbd6fff01
commit
091199d24a
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue