mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Run entity registry write_unavailable_states immediately at start (#113647)
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user