Fix STATE_UNLOCKED for verisure (#20858)

pull/20867/head
Daniel Høyer Iversen 2019-02-08 14:35:38 +01:00 committed by Pascal Vizeli
parent c99d140651
commit 6a78ad8ab6
1 changed files with 1 additions and 1 deletions

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':