From c1c90b8034b0283323a68ce1fec38cc6874a1ccc Mon Sep 17 00:00:00 2001 From: Dave T <17680170+davet2001@users.noreply.github.com> Date: Sat, 11 Jan 2020 03:59:11 +0000 Subject: [PATCH] Update ON/OFF condition and triggers to match documentation and UI, issue #30462 (#30663) --- homeassistant/components/binary_sensor/device_condition.py | 4 ++-- homeassistant/components/binary_sensor/device_trigger.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/binary_sensor/device_condition.py b/homeassistant/components/binary_sensor/device_condition.py index 842790e0178..aa9a9d25e72 100644 --- a/homeassistant/components/binary_sensor/device_condition.py +++ b/homeassistant/components/binary_sensor/device_condition.py @@ -90,7 +90,7 @@ IS_ON = [ CONF_IS_GAS, CONF_IS_HOT, CONF_IS_LIGHT, - CONF_IS_LOCKED, + CONF_IS_NOT_LOCKED, CONF_IS_MOIST, CONF_IS_MOTION, CONF_IS_MOVING, @@ -112,7 +112,7 @@ IS_OFF = [ CONF_IS_NOT_COLD, CONF_IS_NOT_CONNECTED, CONF_IS_NOT_HOT, - CONF_IS_NOT_LOCKED, + CONF_IS_LOCKED, CONF_IS_NOT_MOIST, CONF_IS_NOT_MOVING, CONF_IS_NOT_OCCUPIED, diff --git a/homeassistant/components/binary_sensor/device_trigger.py b/homeassistant/components/binary_sensor/device_trigger.py index 288cc101d93..f4799828c68 100644 --- a/homeassistant/components/binary_sensor/device_trigger.py +++ b/homeassistant/components/binary_sensor/device_trigger.py @@ -91,7 +91,7 @@ TURNED_ON = [ CONF_GAS, CONF_HOT, CONF_LIGHT, - CONF_LOCKED, + CONF_NOT_LOCKED, CONF_MOIST, CONF_MOTION, CONF_MOVING, @@ -113,7 +113,7 @@ TURNED_OFF = [ CONF_NOT_COLD, CONF_NOT_CONNECTED, CONF_NOT_HOT, - CONF_NOT_LOCKED, + CONF_LOCKED, CONF_NOT_MOIST, CONF_NOT_MOVING, CONF_NOT_OCCUPIED,