Run coordinator shutdown eagerly (#113174)

This commit is contained in:
J. Nick Koston 2024-03-13 06:33:50 -10:00 committed by GitHub
parent 9f19e7339d
commit 8bc3286343
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -136,7 +136,7 @@ class DataUpdateCoordinator(BaseDataUpdateCoordinatorProtocol, Generic[_DataT]):
await self.async_shutdown()
self._unsub_shutdown = self.hass.bus.async_listen_once(
EVENT_HOMEASSISTANT_STOP, _on_hass_stop
EVENT_HOMEASSISTANT_STOP, _on_hass_stop, run_immediately=True
)
@callback