Fix lingering timer in usgs_earthquakes_feed (#93084)

This commit is contained in:
epenet 2023-05-16 11:13:14 +02:00 committed by GitHub
parent 32b70ea133
commit 9bd49e4f1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,9 @@ class UsgsEarthquakesFeedEntityManager:
await self.async_update()
# Trigger updates at regular intervals.
async_track_time_interval(self._hass, update, self._scan_interval)
async_track_time_interval(
self._hass, update, self._scan_interval, cancel_on_shutdown=True
)
_LOGGER.debug("Feed entity manager initialized")
async def async_update(self) -> None: