This commit is contained in:
Gerrett84 2025-03-07 15:08:11 +08:00 committed by GitHub
commit 3b64978f8c
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