Shutdown homekit eagerly at the stop event (#113639)

pull/113638/head^2
J. Nick Koston 2024-03-16 13:39:48 -10:00 committed by GitHub
parent 6e3e2d1693
commit 2f39187628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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(