Run bond shutdown listener with run_immediately (#113657)
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…
Reference in New Issue