Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix restore state for manual alarm control panel #19284

Merged
merged 3 commits into from Dec 14, 2018

Conversation

liaanvdm
Copy link
Contributor

@liaanvdm liaanvdm commented Dec 14, 2018

Description:

A bug in the new state restoring mechanism introduced in version 0.84 broke the manual alarm control panel's ability to restore. This small change fixes this and also another related issue whereby restoring the alarm state while its in "Pending" state causes the component to be stuck in that state indefinitely.

Related issue (if applicable): No open issues

Pull request in home-assistant.io with documentation (if applicable): N/A

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.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@balloob balloob added this to the 0.84.3 milestone Dec 14, 2018
@balloob balloob merged commit 027920f into home-assistant:dev Dec 14, 2018
@ghost ghost removed the in progress label Dec 14, 2018
balloob pushed a commit that referenced this pull request Dec 17, 2018
* Fixed manual alarm control panel restore state

* Revert "Fixed manual alarm control panel restore state"

This reverts commit 61c9faf.

* Fixed manual alarm control panel's state restore
@balloob balloob mentioned this pull request Dec 17, 2018
@liaanvdm liaanvdm deleted the manual-alarm-restore branch December 18, 2018 14:37
dshokouhi pushed a commit to dshokouhi/home-assistant that referenced this pull request Dec 25, 2018
* Fixed manual alarm control panel restore state

* Revert "Fixed manual alarm control panel restore state"

This reverts commit 61c9faf.

* Fixed manual alarm control panel's state restore
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.

None yet

3 participants