Run august stop listener with run_immediately (#113729)

There is no need for a call_soon here
This commit is contained in:
J. Nick Koston 2024-03-18 02:07:00 -10:00 committed by GitHub
parent 8a144d16f5
commit 264e023ab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,9 @@ class AugustSubscriberMixin:
self._unsub_interval()
self._stop_interval = self._hass.bus.async_listen(
EVENT_HOMEASSISTANT_STOP, _async_cancel_update_interval
EVENT_HOMEASSISTANT_STOP,
_async_cancel_update_interval,
run_immediately=True,
)
@callback