Compare commits

..

2 Commits

Author SHA1 Message Date
e9da051fc1 Fix attribute missing _tracker_device_beacon 2022-03-04 19:43:05 +01:00
1b2776f646 Fix update method on coordinator coma 2022-03-04 19:37:06 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -313,7 +313,7 @@ class GeoRideContext:
beacon_coordinator = DataUpdateCoordinator[Mapping[str, Any]](
hass,
_LOGGER,
name=tracker_beacon.name
name=tracker_beacon.name,
update_method=self.refresh_trackers_beacon,
update_interval=update_interval
)

View File

@@ -285,7 +285,7 @@ class GeoRideBeaconUpdatedBinarySensorEntity(GeoRideBeaconBinarySensorEntity):
@property
def unique_id(self):
"""Return the unique ID."""
return f"update_{self._tracker_beacon_device.beacon.beacon_id}"
return f"update_{self._tracker_device_beacon.beacon.beacon_id}"
@property
def device_class(self):
@@ -295,7 +295,7 @@ class GeoRideBeaconUpdatedBinarySensorEntity(GeoRideBeaconBinarySensorEntity):
@property
def is_on(self):
"""state value property"""
return not self._tracker_beacon_device.beacon.is_updated
return not self._tracker_device_beacon.beacon.is_updated
@property
def name(self):