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

Improve update performance #18518

Merged
merged 1 commit into from Nov 19, 2018
Merged

Conversation

ehendrix23
Copy link
Contributor

Description:

Added support for sessions to keep connection open with August portal, improving performance.
py-august version increased to 0.7.0

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 the code communicates with devices, web services, or third-party tools:

  • New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.

Added support for sessions to keep connection open with August portal, improving performance.
py-august version increased to 0.7.0

self._hass.bus.listen_once(
EVENT_HOMEASSISTANT_STOP, august_api_stop)
_LOGGER.debug("Registered for HASS stop event")
Copy link
Member

Choose a reason for hiding this comment

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

Please add this object a stop method and register this inside setup. It's a bad practice to do this inside a init

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pvizeli Created PR #18582 for this, can you please check and confirm that this is indeed the way it should be. :-)

@balloob new PR #18582 created to address the comment.

@balloob balloob merged commit 9fa34f0 into home-assistant:dev Nov 19, 2018
@ghost ghost removed the in progress label Nov 19, 2018
@balloob
Copy link
Member

balloob commented Nov 19, 2018

Oh no 🙈 I was too fast Pascal

@ehendrix23 ehendrix23 deleted the Add-session-support branch November 19, 2018 18:29
@balloob balloob mentioned this pull request Nov 29, 2018
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

4 participants