From 9528ea7d726103b5a961ab40ce1f86acb47dd2e5 Mon Sep 17 00:00:00 2001 From: Jason <37859597+zachowj@users.noreply.github.com> Date: Fri, 1 May 2020 21:34:07 +0000 Subject: [PATCH] Change STATE_UNLOCKED to be the 'on' value. https://community.home-assistant.io/t/two-new-nodes-with-custom-integration-looking-for-testers/150736/82 Possible Breaking Change --- custom_components/nodered/binary_sensor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/nodered/binary_sensor.py b/custom_components/nodered/binary_sensor.py index 64dea79..4d2502e 100644 --- a/custom_components/nodered/binary_sensor.py +++ b/custom_components/nodered/binary_sensor.py @@ -4,10 +4,10 @@ from homeassistant.const import ( CONF_STATE, STATE_HOME, - STATE_LOCKED, STATE_OFF, STATE_ON, STATE_OPEN, + STATE_UNLOCKED, ) from homeassistant.helpers.dispatcher import async_dispatcher_connect @@ -42,7 +42,7 @@ class NodeRedBinarySensor(NodeRedEntity): STATE_ON, STATE_OPEN, STATE_HOME, - STATE_LOCKED, + STATE_UNLOCKED, ) def __init__(self, hass, config):