Skip to content

Commit

Permalink
xiaomi binary sensor bug fix (#8586)
Browse files Browse the repository at this point in the history
* xiaomi binary sensor bug fig

* Is not need on binary_sensor
  • Loading branch information
Danielhiversen committed Jul 21, 2017
1 parent ee15306 commit 4359e0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions homeassistant/components/binary_sensor/xiaomi.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def should_poll(self):
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
Expand Down

0 comments on commit 4359e0b

Please sign in to comment.