Fix lingering timer in usgs_earthquakes_feed (#93084)
This commit is contained in:
parent
32b70ea133
commit
9bd49e4f1d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue