Shutdown homekit eagerly at the stop event (#113639)
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(
|
||||
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(
|
||||
|
|
Loading…
Reference in New Issue