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.
This commit is contained in:
tumik authored and Paulus Schoutsen committed 2018-02-27 02:01:54 -08:00
1 parent de3a9d552a
commit d128f4e51f
1 file changed
+1 -1
@@ -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