Compare commits

..

2 Commits

Author SHA1 Message Date
0ee5a9ad12 Fix tracker device not exti 2022-03-04 19:46:09 +01:00
e9da051fc1 Fix attribute missing _tracker_device_beacon 2022-03-04 19:43:05 +01:00

View File

@@ -84,7 +84,7 @@ class GeoRideBeaconBinarySensorEntity(CoordinatorEntity, BinarySensorEntity):
@property @property
def device_info(self): def device_info(self):
"""Return the device info.""" """Return the device info."""
return self._tracker_device.device_info return self._tracker_device_beacon.device_info
class GeoRideStolenBinarySensorEntity(GeoRideBinarySensorEntity): class GeoRideStolenBinarySensorEntity(GeoRideBinarySensorEntity):
"""Represent a tracked device.""" """Represent a tracked device."""
@@ -285,7 +285,7 @@ class GeoRideBeaconUpdatedBinarySensorEntity(GeoRideBeaconBinarySensorEntity):
@property @property
def unique_id(self): def unique_id(self):
"""Return the unique ID.""" """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 @property
def device_class(self): def device_class(self):
@@ -295,7 +295,7 @@ class GeoRideBeaconUpdatedBinarySensorEntity(GeoRideBeaconBinarySensorEntity):
@property @property
def is_on(self): def is_on(self):
"""state value property""" """state value property"""
return not self._tracker_beacon_device.beacon.is_updated return not self._tracker_device_beacon.beacon.is_updated
@property @property
def name(self): def name(self):