Fix small mistakes

This commit is contained in:
2021-04-11 17:00:33 +02:00
parent 8a44d22d41
commit 5e83ed1c68
6 changed files with 13 additions and 10 deletions

View File

@@ -71,7 +71,7 @@ class GeoRideStolenBinarySensorEntity(GeoRideBinarySensorEntity):
@property
def is_on(self):
"""state value property"""
return self._tracker_device.is_stolen
return self._tracker_device.tracker.is_stolen
@property
def name(self):
@@ -120,7 +120,7 @@ class GeoRideActiveSubscriptionBinarySensorEntity(GeoRideBinarySensorEntity):
@property
def is_on(self):
"""state value property"""
if self._tracker.subscription_id is not None:
if self._tracker_device.tracker.subscription_id is not None:
return True
return False