mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Shutdown homekit eagerly at the stop event (#113639)
This commit is contained in:
@@ -349,7 +349,9 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
|
||||
entry.async_on_unload(entry.add_update_listener(_async_update_listener))
|
||||
entry.async_on_unload(
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, homekit.async_stop)
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, homekit.async_stop, run_immediately=True
|
||||
)
|
||||
)
|
||||
|
||||
entry_data = HomeKitEntryData(
|
||||
|
Reference in New Issue
Block a user