Fix lingering timer in demo geo_location (#92514)
This commit is contained in:
@@ -86,7 +86,10 @@ class DemoManager:
|
||||
def _init_regular_updates(self) -> None:
|
||||
"""Schedule regular updates based on configured time interval."""
|
||||
track_time_interval(
|
||||
self._hass, lambda now: self._update(), DEFAULT_UPDATE_INTERVAL
|
||||
self._hass,
|
||||
lambda now: self._update(),
|
||||
DEFAULT_UPDATE_INTERVAL,
|
||||
cancel_on_shutdown=True,
|
||||
)
|
||||
|
||||
def _update(self, count: int = 1) -> None:
|
||||
|
||||
Reference in New Issue
Block a user