Fix wrong binary sensor state

This commit is contained in:
Gerrett84 2025-02-08 15:57:00 +01:00 committed by GitHub
parent 57422ddf0d
commit e2c482686d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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