mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
Fix wrong binary sensor state
This commit is contained in:
parent
57422ddf0d
commit
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