mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-18 16:10:44 +08:00
Compare commits
2 Commits
b16f265a4a
...
c181581d9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c181581d9c | ||
|
|
e2c482686d |
@ -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