From dfe1b8d9344fbed665896bf6c2b65de8fbb5f280 Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Fri, 24 Jun 2016 19:46:42 +0200 Subject: [PATCH] Fixed minor feature-detection bug with incomplet configuration --- homeassistant/components/binary_sensor/homematic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/homematic.py b/homeassistant/components/binary_sensor/homematic.py index fe50a5ef48c..d2005f99ba5 100644 --- a/homeassistant/components/binary_sensor/homematic.py +++ b/homeassistant/components/binary_sensor/homematic.py @@ -89,7 +89,7 @@ class HMBinarySensor(homematic.HMDevice, BinarySensorDevice): return None # If state is MOTION (RemoteMotion works only) - if self._state in "MOTION": + if self._state == "MOTION": return "motion" return SENSOR_TYPES_CLASS.get(self._hmdevice.__class__.__name__, None)