mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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
|
return self._should_poll
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state(self):
|
def is_on(self):
|
||||||
"""Return the state of the sensor."""
|
"""Return true if sensor is on."""
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user