Fix inverted sensors on the concord232 binary sensor component (#11261)
* Fix inverted sensors on the concord232 binary sensor component * Changed from == Tripped to != Normal
This commit is contained in:
1 parent
5a469f4d4b
commit
486263fff7
1 file changed
+1
-1
@@ -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."""
|
||||
|
||||
Reference in new issue
Block a user