mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 20:55:10 +02:00
xiaomi binary sensor bug fix (#8586)
* xiaomi binary sensor bug fig * Is not need on binary_sensor
This commit is contained in:
committed by
GitHub
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
|
||||
|
Reference in New Issue
Block a user