Fix STATE_UNLOCKED for verisure (#20858)

This commit is contained in:
Daniel Høyer Iversen authored and Paulus Schoutsen committed 2019-02-09 22:48:08 -08:00
1 parent 5a762c74f4
commit 81cad8cd52
1 file changed
+1 -1
+1 -1
View File
@@ -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':