From 6a78ad8ab642a3553ec0574106284c3d28865c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=B8yer=20Iversen?= Date: Fri, 8 Feb 2019 14:35:38 +0100 Subject: [PATCH] Fix STATE_UNLOCKED for verisure (#20858) --- homeassistant/components/verisure/lock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/verisure/lock.py b/homeassistant/components/verisure/lock.py index cf7d58b17a8..be9a0a24fee 100644 --- a/homeassistant/components/verisure/lock.py +++ b/homeassistant/components/verisure/lock.py @@ -80,7 +80,7 @@ class VerisureDoorlock(LockDevice): "$.doorLockStatusList[?(@.deviceLabel=='%s')].lockedState", self._device_label) if status == 'UNLOCKED': - self._state = None + self._state = STATE_UNLOCKED elif status == 'LOCKED': self._state = STATE_LOCKED elif status != 'PENDING':