Fix lingering timer in traccar (#91812)

pull/91737/merge
epenet 2023-04-21 18:49:54 +02:00 committed by GitHub
parent 4663ad75a0
commit 3d39854ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -243,7 +243,9 @@ class TraccarScanner:
return False
await self._async_update()
async_track_time_interval(self._hass, self._async_update, self._scan_interval)
async_track_time_interval(
self._hass, self._async_update, self._scan_interval, cancel_on_shutdown=True
)
return True
async def _async_update(self, now=None):