Skip to content

Fix STATE_UNLOCKED for verisure#20858

Merged
pvizeli merged 1 commit intodevfrom
verisure
Feb 8, 2019
Merged

Fix STATE_UNLOCKED for verisure#20858
pvizeli merged 1 commit intodevfrom
verisure

Conversation

@Danielhiversen
Copy link
Copy Markdown
Member

Description:

FIx bug from #20337

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.

@pvizeli pvizeli merged commit 6a78ad8 into dev Feb 8, 2019
@ghost ghost removed the in progress label Feb 8, 2019
@delete-merged-branch delete-merged-branch bot deleted the verisure branch February 8, 2019 13:35
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.

balloob pushed a commit that referenced this pull request Feb 10, 2019
@balloob balloob mentioned this pull request Feb 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants