From aa6cf7b515ea7ce13fe288610d8c9f236db18179 Mon Sep 17 00:00:00 2001 From: Matthieu DUVAL Date: Tue, 28 Feb 2023 19:34:56 +0100 Subject: [PATCH] Add beacon verification from the parametter has_beacon unsted of hw version --- custom_components/georide/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/georide/__init__.py b/custom_components/georide/__init__.py index 3bac8c4..77cac20 100644 --- a/custom_components/georide/__init__.py +++ b/custom_components/georide/__init__.py @@ -306,7 +306,7 @@ class GeoRideContext: "tracker_device": Device(tracker), "coordinator": coordinator } - if tracker.version > 2: + if tracker.has_beacon: tracker_beacons = await self.get_tracker_beacons_by_tracker_id(tracker.tracker_id) for tracker_beacon in tracker_beacons: beacon_coordinator = DataUpdateCoordinator[Mapping[str, Any]](