Skip to content

Fix for Honeywell Round thermostats#9308

Merged
fabaff merged 1 commit into
home-assistant:devfrom
dansarginson:more-honeywell
Sep 5, 2017
Merged

Fix for Honeywell Round thermostats#9308
fabaff merged 1 commit into
home-assistant:devfrom
dansarginson:more-honeywell

Conversation

@dansarginson
Copy link
Copy Markdown
Contributor

This fixes an issue (#8554) whereby the Honeywell thermostats stopped
working after a period of hours or days. We do this by forgetting the
authorisation token that was sent back to us when we first logged in,
which causes the underlying evohomeclient library to perform the full
login procedure again.

Description:

Fixes #8554 per my analysis in that issue's thread. The token issued by Honeywell eventually times out but the underlying library has no mechanism to renew the credential. This is achieved by setting the library's "user_data" field to None when an update error has occurred, so next time a full update is performed, the log-on procedure happen and we get a new auth token.

I've tested this fix out in my environment and had stable performance from the Honeywell component for over a week now.

Related issue (if applicable): fixes #8554

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.github.io#<home-assistant.github.io PR number goes here>

Checklist:

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

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

This fixes an issue (home-assistant#8554) whereby the Honeywell thermostats stopped
working after a period of hours or days. We do this by forgetting the
authorisation token that was sent back to us when we first logged in,
which causes the underlying evohomeclient library to perform the full
login procedure again.
Copy link
Copy Markdown
Member

@fabaff fabaff left a comment

Choose a reason for hiding this comment

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

🐦

@fabaff fabaff merged commit 5ba39c8 into home-assistant:dev Sep 5, 2017
@balloob balloob mentioned this pull request Sep 7, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Dec 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Honeywell Thermostat Stops working after a while (key Error)

5 participants