Fix "NameError: name 'new_georide_tracker' is not defined"

This commit is contained in:
2022-03-04 18:07:37 +01:00
parent 1250dda047
commit 32db0ec42e

View File

@@ -255,7 +255,7 @@ class GeoRideContext:
if not found:
self._georide_trackers.append(refreshed_tracker)
if refreshed_tracker.version > 2:
self.force_refresh_trackers_beacon(new_georide_tracker.tracker_id)
self.force_refresh_trackers_beacon(refreshed_tracker.tracker_id)
if not self._thread_started:
_LOGGER.info("Start the thread")
# We refresh the tracker list each hours