Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/verisure/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def update(self):
"$.doorLockStatusList[?(@.deviceLabel=='%s')].lockedState",
self._device_label)
if status == 'UNLOCKED':
self._state = None
self._state = STATE_UNLOCKED
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should instead remove the state property in the verisure lock entity class, and implement is_locked. Lock platforms should not overwrite the state property.

elif status == 'LOCKED':
self._state = STATE_LOCKED
elif status != 'PENDING':
Expand Down