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:
parent
21d8ecdacd
commit
f396266c74
1 changed files with 1 additions and 1 deletions
|
@ -99,6 +99,6 @@ class DeconzBinarySensor(BinarySensorDevice):
|
||||||
attr = {
|
attr = {
|
||||||
ATTR_BATTERY_LEVEL: self._sensor.battery,
|
ATTR_BATTERY_LEVEL: self._sensor.battery,
|
||||||
}
|
}
|
||||||
if self._sensor.type == PRESENCE:
|
if self._sensor.type in PRESENCE:
|
||||||
attr['dark'] = self._sensor.dark
|
attr['dark'] = self._sensor.dark
|
||||||
return attr
|
return attr
|
||||||
|
|
Loading…
Add table
Reference in a new issue