mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
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)
|
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(
|
async def async_migrate_entries(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user