Compare commits

...

2 Commits

Author SHA1 Message Date
Gerrett84
1921d4a935
Merge e2c482686d into 3759aa9a1b 2025-03-20 18:02:45 +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