Fix coordinator device name, await on add entity
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user