Fix lingering timer in qld_bushfire (#92189)

pull/92209/head
epenet 2023-04-28 21:16:26 +02:00 committed by GitHub
parent c303487c1b
commit c483860560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -126,7 +126,10 @@ class QldBushfireFeedEntityManager:
def _init_regular_updates(self) -> None:
"""Schedule regular updates at the specified interval."""
track_time_interval(
self._hass, lambda now: self._feed_manager.update(), self._scan_interval
self._hass,
lambda now: self._feed_manager.update(),
self._scan_interval,
cancel_on_shutdown=True,
)
def get_entry(self, external_id: str) -> QldBushfireAlertFeedEntry | None: