From 84c482441d5669de875598538d2a45af05a40778 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 21 Jul 2021 11:29:41 -1000 Subject: [PATCH] Use None instead of STATE_UNKNOWN in template lock (#53286) --- homeassistant/components/template/lock.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/template/lock.py b/homeassistant/components/template/lock.py index 55a568ed3c2..51431d133f7 100644 --- a/homeassistant/components/template/lock.py +++ b/homeassistant/components/template/lock.py @@ -15,7 +15,6 @@ from homeassistant.const import ( CONF_VALUE_TEMPLATE, STATE_LOCKED, STATE_ON, - STATE_UNKNOWN, STATE_UNLOCKED, ) from homeassistant.core import callback @@ -145,7 +144,7 @@ class TemplateLock(TemplateEntity, LockEntity): self._state = result.lower() return - self._state = STATE_UNKNOWN + self._state = None async def async_added_to_hass(self): """Register callbacks."""