Compare commits

...

2 Commits

Author SHA1 Message Date
Gerrett84
090ab47e7b
Merge e2c482686d into 52485d8c7a 2025-02-25 10:39:40 +08:00
Gerrett84
e2c482686d
Fix wrong binary sensor state 2025-02-08 15:57:00 +01:00

View File

@ -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