Compare commits
2 Commits
0.9.0-snap
...
0.9.0-snap
| Author | SHA1 | Date | |
|---|---|---|---|
| a3c84c63fd | |||
| a37cca7902 |
@@ -250,12 +250,12 @@ class GeoRideContext:
|
|||||||
if tracker.tracker_id == refreshed_tracker.tracker_id:
|
if tracker.tracker_id == refreshed_tracker.tracker_id:
|
||||||
tracker.update_all_data(refreshed_tracker)
|
tracker.update_all_data(refreshed_tracker)
|
||||||
if tracker.version > 2:
|
if tracker.version > 2:
|
||||||
self.force_refresh_trackers_beacon(tracker.tracker_id)
|
await self.force_refresh_trackers_beacon(tracker.tracker_id)
|
||||||
found = True
|
found = True
|
||||||
if not found:
|
if not found:
|
||||||
self._georide_trackers.append(refreshed_tracker)
|
self._georide_trackers.append(refreshed_tracker)
|
||||||
if refreshed_tracker.version > 2:
|
if refreshed_tracker.version > 2:
|
||||||
self.force_refresh_trackers_beacon(refreshed_tracker.tracker_id)
|
await self.force_refresh_trackers_beacon(refreshed_tracker.tracker_id)
|
||||||
if not self._thread_started:
|
if not self._thread_started:
|
||||||
_LOGGER.info("Start the thread")
|
_LOGGER.info("Start the thread")
|
||||||
# We refresh the tracker list each hours
|
# We refresh the tracker list each hours
|
||||||
@@ -300,7 +300,7 @@ class GeoRideContext:
|
|||||||
"coordinator": coordinator
|
"coordinator": coordinator
|
||||||
}
|
}
|
||||||
if tracker.version > 2:
|
if tracker.version > 2:
|
||||||
tracker_beacon = await get_tracker_beacon_by_tracker_id(tracker.tracker_id)
|
tracker_beacon = await self.get_tracker_beacon_by_tracker_id(tracker.tracker_id)
|
||||||
beacon_coordinator = DataUpdateCoordinator[Mapping[str, Any]](
|
beacon_coordinator = DataUpdateCoordinator[Mapping[str, Any]](
|
||||||
hass,
|
hass,
|
||||||
_LOGGER,
|
_LOGGER,
|
||||||
|
|||||||
Reference in New Issue
Block a user