From e9262ff3d458d692f626288df73e287be5664c77 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Fri, 4 Mar 2022 19:01:22 +0100 Subject: [PATCH] Fix coordinator device name, await on add entity --- custom_components/georide/__init__.py | 2 +- custom_components/georide/siren.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/georide/__init__.py b/custom_components/georide/__init__.py index c5978a6..06cf152 100644 --- a/custom_components/georide/__init__.py +++ b/custom_components/georide/__init__.py @@ -310,7 +310,7 @@ class GeoRideContext: name= tracker_beacon.name ) coordoned_beacon = { - "beacon_device": DeviceBeacon(tracker_beacon), + "tracker_beacon": DeviceBeacon(tracker_beacon), "coordinator": coordinator } self._georide_trackers_beacon_coordoned.append(coordoned_beacon) diff --git a/custom_components/georide/siren.py b/custom_components/georide/siren.py index d507210..748f4fd 100644 --- a/custom_components/georide/siren.py +++ b/custom_components/georide/siren.py @@ -35,7 +35,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities): # pylint: d if tracker_device.tracker.version > 2: entities.append(GeoRideSirenEntity(coordinator, tracker_device, hass)) - await async_add_entities(entities) + async_add_entities(entities) return True