xiaomi binary sensor bug fix (#8586)
* xiaomi binary sensor bug fig * Is not need on binary_sensor
This commit is contained in:
1 parent
ee153062ab
commit
4359e0babf
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user