From 9e2e6e8d5348cd9146a3997612f6cfc72dde0902 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 4 Mar 2022 17:56:29 +0100 Subject: [PATCH] remove await on force_refresh_trackers_beacon --- custom_components/georide/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/georide/__init__.py b/custom_components/georide/__init__.py index da92000..89f535d 100644 --- a/custom_components/georide/__init__.py +++ b/custom_components/georide/__init__.py @@ -250,13 +250,12 @@ class GeoRideContext: if tracker.tracker_id == refreshed_tracker.tracker_id: tracker.update_all_data(refreshed_tracker) if tracker.version > 2: - await self.force_refresh_trackers_beacon(tracker.tracker_id) + 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 self.force_refresh_trackers_beacon(tracker.tracker_id) - + self.force_refresh_trackers_beacon(tracker.tracker_id) if not self._thread_started: _LOGGER.info("Start the thread") # We refresh the tracker list each hours