Compare commits
6 Commits
0.9.0-snap
...
0.9.0-snap
| Author | SHA1 | Date | |
|---|---|---|---|
| a3c84c63fd | |||
| a37cca7902 | |||
| 32db0ec42e | |||
| 1250dda047 | |||
| 759fe2d257 | |||
| 9e2e6e8d53 |
@@ -255,8 +255,7 @@ class GeoRideContext:
|
|||||||
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:
|
||||||
await self.force_refresh_trackers_beacon(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
|
||||||
@@ -301,11 +300,11 @@ 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,
|
||||||
name=tracker_beacon.name
|
name= tracker_beacon.name
|
||||||
)
|
)
|
||||||
coordoned_beacon = {
|
coordoned_beacon = {
|
||||||
"beacon_device": DeviceBeacon(tracker_beacon),
|
"beacon_device": DeviceBeacon(tracker_beacon),
|
||||||
|
|||||||
Reference in New Issue
Block a user