Fix coordinator device name, await on add entity

This commit is contained in:
2022-03-04 19:01:22 +01:00
parent f36a3093bf
commit e9262ff3d4
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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