From 9bd49e4f1d0cb9d98c7c8dfc102427fec18fda92 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 16 May 2023 11:13:14 +0200 Subject: [PATCH] Fix lingering timer in usgs_earthquakes_feed (#93084) --- .../components/usgs_earthquakes_feed/geo_location.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/usgs_earthquakes_feed/geo_location.py b/homeassistant/components/usgs_earthquakes_feed/geo_location.py index 99aecfc406b..1c6c1b04231 100644 --- a/homeassistant/components/usgs_earthquakes_feed/geo_location.py +++ b/homeassistant/components/usgs_earthquakes_feed/geo_location.py @@ -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: