mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Run bond shutdown listener with run_immediately (#113657)
This commit is contained in:
parent
309fcb5c30
commit
6df3e9d7c0
@ -68,7 +68,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
entry.async_on_unload(_async_stop_event)
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen(EVENT_HOMEASSISTANT_STOP, _async_stop_event)
|
||||
hass.bus.async_listen(
|
||||
EVENT_HOMEASSISTANT_STOP, _async_stop_event, run_immediately=True
|
||||
)
|
||||
)
|
||||
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = BondData(hub, bpup_subs)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user