mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Shutdown homekit eagerly at the stop event (#113639)
This commit is contained in:
parent
6e3e2d1693
commit
2f39187628
@ -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(entry.add_update_listener(_async_update_listener))
|
||||||
entry.async_on_unload(
|
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(
|
entry_data = HomeKitEntryData(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user