From f396266c74d8974038c70bbef918616621d362d9 Mon Sep 17 00:00:00 2001 From: tumik Date: Tue, 27 Feb 2018 08:44:57 +0200 Subject: [PATCH] Component deconz: Fix dark attribute on presence sensors (#12691) pydeconz changed PRESENCE to be an array in v25, so this code hasn't worked since that change. --- homeassistant/components/binary_sensor/deconz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/deconz.py b/homeassistant/components/binary_sensor/deconz.py index 8fea7891c3d..28e78db90ec 100644 --- a/homeassistant/components/binary_sensor/deconz.py +++ b/homeassistant/components/binary_sensor/deconz.py @@ -99,6 +99,6 @@ class DeconzBinarySensor(BinarySensorDevice): attr = { ATTR_BATTERY_LEVEL: self._sensor.battery, } - if self._sensor.type == PRESENCE: + if self._sensor.type in PRESENCE: attr['dark'] = self._sensor.dark return attr