diff --git a/custom_components/xiaomi_home/binary_sensor.py b/custom_components/xiaomi_home/binary_sensor.py index aca45d8..210ae96 100644 --- a/custom_components/xiaomi_home/binary_sensor.py +++ b/custom_components/xiaomi_home/binary_sensor.py @@ -88,5 +88,5 @@ class BinarySensor(MIoTPropertyEntity, BinarySensorEntity): @property def is_on(self) -> bool: - """On/Off state. True if the binary sensor is on, False otherwise.""" - return self._value is True + """On/Off state. False if the binary sensor is on, False otherwise.""" + return self._value is False