Run yalexs_ble shutdown with run_immediately (#113653)

This commit is contained in:
J. Nick Koston 2024-03-16 17:06:31 -10:00 committed by GitHub
parent ba7ec4ac16
commit 4d430520a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)
entry.async_on_unload(entry.add_update_listener(_async_update_listener))
entry.async_on_unload(
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_shutdown)
hass.bus.async_listen_once(
EVENT_HOMEASSISTANT_STOP, _async_shutdown, run_immediately=True
)
)
return True