Migrate legacy device_tracker shutdown to use run_immediately (#113835)

A call_soon is not needed here
This commit is contained in:
J. Nick Koston 2024-03-19 14:07:57 -10:00 committed by GitHub
parent b26f0bc488
commit 7b67a486bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -271,7 +271,9 @@ async def _async_setup_legacy_integration(
""" """
cancel_update_stale() cancel_update_stale()
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _on_hass_stop) hass.bus.async_listen_once(
EVENT_HOMEASSISTANT_STOP, _on_hass_stop, run_immediately=True
)
@attr.s @attr.s