mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Fix lingering timer in demo geo_location (#92514)
This commit is contained in:
parent
887e656570
commit
b6930c0f04
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user