Run bond shutdown listener with run_immediately (#113657)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user