diff --git a/jaraco/abode/devices/binary_sensor.py b/jaraco/abode/devices/binary_sensor.py index e9c6de1..39e046d 100644 --- a/jaraco/abode/devices/binary_sensor.py +++ b/jaraco/abode/devices/binary_sensor.py @@ -14,6 +14,8 @@ def is_on(self): Assume offline or open (worst case). """ + if self.type == 'Occupancy': + return self.status not in STATUS.ONLINE return self.status not in ( STATUS.OFF, STATUS.OFFLINE, @@ -43,9 +45,7 @@ class Motion(BinarySensor): class Occupancy(BinarySensor): - @property - def is_on(self): - return self.status not in STATUS.ONLINE + pass class Door(BinarySensor):