mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
xiaomi binary sensor bug fix (#8586)
* xiaomi binary sensor bug fig * Is not need on binary_sensor
This commit is contained in:
parent
ee153062ab
commit
4359e0babf
@ -73,8 +73,8 @@ class XiaomiBinarySensor(XiaomiDevice, BinarySensorDevice):
|
||||
return self._should_poll
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the sensor."""
|
||||
def is_on(self):
|
||||
"""Return true if sensor is on."""
|
||||
return self._state
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user