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

Merge alandtse/dev #136

Merged
merged 10 commits into from
Mar 25, 2019
Merged

Merge alandtse/dev #136

merged 10 commits into from
Mar 25, 2019

Conversation

alandtse
Copy link
Owner

Per our discussion in #132, this completely disables polling if websocket is detected. It also will do new device detection based on websockets. Should resolve #132.

It does not handle bluetooth changes so is not a complete fix until your bluetooth update changes are merged in. In theory you could simply force update_devices(no_throttle=True) after setting the new_devices key I mentioned in the other thread and the bluetooth update will be done as well. Alternatively, you could move the bluetooth update over to it's own function which you would then call.

Also added some miscellaneous changes:

Copy link
Collaborator

@keatontaylor keatontaylor left a comment

Choose a reason for hiding this comment

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

Looks good to me, code cleanup required once polling completely removed.

@keatontaylor keatontaylor merged commit 0141758 into alandtse:dev Mar 25, 2019
@alandtse alandtse mentioned this pull request Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants