This commit is contained in:
Gerrett84 2025-02-19 15:38:06 +08:00 committed by GitHub
commit 591515f02b
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