From e2c482686d4cf56337283368fd954ae599e28028 Mon Sep 17 00:00:00 2001 From: Gerrett84 Date: Sat, 8 Feb 2025 15:57:00 +0100 Subject: [PATCH] Fix wrong binary sensor state --- custom_components/xiaomi_home/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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