Fix force_refresh_trackers_beacon

This commit is contained in:
2022-03-04 17:53:51 +01:00
parent e92ac1825d
commit 4dc091525e
2 changed files with 4 additions and 8 deletions

View File

@@ -250,12 +250,12 @@ class GeoRideContext:
if tracker.tracker_id == refreshed_tracker.tracker_id:
tracker.update_all_data(refreshed_tracker)
if tracker.version > 2:
await force_refresh_trackers_beacon(tracker.tracker_id)
await self.force_refresh_trackers_beacon(tracker.tracker_id)
found = True
if not found:
self._georide_trackers.append(refreshed_tracker)
if refreshed_tracker.version > 2:
await force_refresh_trackers_beacon(tracker.tracker_id)
await self.force_refresh_trackers_beacon(tracker.tracker_id)
if not self._thread_started:
_LOGGER.info("Start the thread")
@@ -320,7 +320,7 @@ class GeoRideContext:
"""Return coordoned trackers"""
return self._georide_trackers_coordoned
@property
def georide_trackers_beacon_coordoned(self):
"""Return coordoned trackers"""