mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-16 06:30:44 +08:00
Merge e2c482686d into 672e5b3f5d
This commit is contained in:
commit
53e12c74ff
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user