From 2fef3c58f1a1c5132eee4111a46d4f5dbcb9bd63 Mon Sep 17 00:00:00 2001 From: CTLS Date: Wed, 20 Dec 2017 20:05:21 -0600 Subject: [PATCH 1/2] Fix inverted sensors on the concord232 binary sensor component --- homeassistant/components/binary_sensor/concord232.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/concord232.py b/homeassistant/components/binary_sensor/concord232.py index 7ba88f766112da..2aa0d8778d2dec 100755 --- a/homeassistant/components/binary_sensor/concord232.py +++ b/homeassistant/components/binary_sensor/concord232.py @@ -118,7 +118,7 @@ def name(self): 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'] == 'Tripped') def update(self): """Get updated stats from API.""" From a81dadb71fffdc11501db382cdd69b241e9c8945 Mon Sep 17 00:00:00 2001 From: CTLS Date: Wed, 20 Dec 2017 23:06:10 -0600 Subject: [PATCH 2/2] Changed from == Tripped to != Normal --- homeassistant/components/binary_sensor/concord232.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/binary_sensor/concord232.py b/homeassistant/components/binary_sensor/concord232.py index 2aa0d8778d2dec..d689f030d8a7b3 100755 --- a/homeassistant/components/binary_sensor/concord232.py +++ b/homeassistant/components/binary_sensor/concord232.py @@ -118,7 +118,7 @@ def name(self): 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'] == 'Tripped') + return bool(self._zone['state'] != 'Normal') def update(self): """Get updated stats from API."""