xiaomi binary sensor bug fix (#8586)

* xiaomi binary sensor bug fig

* Is not need on binary_sensor
This commit is contained in:
Daniel Høyer Iversen 2017-07-21 12:39:25 +02:00 committed by GitHub
parent ee153062ab
commit 4359e0babf

View File

@ -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