Fix inverted sensors on the concord232 binary sensor component (#11261)

* Fix inverted sensors on the concord232 binary sensor component

* Changed from == Tripped to != Normal
pull/11268/head
CTLS 2017-12-20 23:29:42 -06:00 committed by Martin Hjelmare
parent 7faa94046c
commit b866687cd7
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class Concord232ZoneSensor(BinarySensorDevice):
def is_on(self):
"""Return true if the binary sensor is on."""
# True means "faulted" or "open" or "abnormal state"
return bool(self._zone['state'] == 'Normal')
return bool(self._zone['state'] != 'Normal')
def update(self):
"""Get updated stats from API."""