mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix lingering timer in usgs_earthquakes_feed (#93084)
This commit is contained in:
parent
32b70ea133
commit
9bd49e4f1d
@ -165,7 +165,9 @@ class UsgsEarthquakesFeedEntityManager:
|
|||||||
await self.async_update()
|
await self.async_update()
|
||||||
|
|
||||||
# Trigger updates at regular intervals.
|
# 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")
|
_LOGGER.debug("Feed entity manager initialized")
|
||||||
|
|
||||||
async def async_update(self) -> None:
|
async def async_update(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user