From 4359e0babf74aa6c40a3c6354e6b0d67180f3497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Fri, 21 Jul 2017 12:39:25 +0200 Subject: [PATCH] xiaomi binary sensor bug fix (#8586) * xiaomi binary sensor bug fig * Is not need on binary_sensor --- homeassistant/components/binary_sensor/xiaomi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/binary_sensor/xiaomi.py b/homeassistant/components/binary_sensor/xiaomi.py index 2f9d91655b6..fafdc098c5d 100644 --- a/homeassistant/components/binary_sensor/xiaomi.py +++ b/homeassistant/components/binary_sensor/xiaomi.py @@ -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