Skip to content

Additional fix to poll hardening to improve data sync#90

Merged
pavoni merged 5 commits intomaximvelichko:masterfrom
toggledbits:poll-hardening-2
May 16, 2018
Merged

Additional fix to poll hardening to improve data sync#90
pavoni merged 5 commits intomaximvelichko:masterfrom
toggledbits:poll-hardening-2

Conversation

@toggledbits
Copy link
Copy Markdown
Contributor

As mentioned in issue #89 , Vera gives inaccurate results across Luup reloads if the timestamp parameters (loadtime and dataversion) are used spanning the reload. That is, if a reload occurs, and Vera is then presented with a dataversion from before the reload, it will give inaccurate deltas not just to the initial call, but to subsequent calls as well. Resetting the timestamp on an exception (usually a RequestException resulting from Vera being unreachable during its reload) forces the next long pull to return a full data set, resyncing the local data and providing a stable dataversion with which to continue.

@toggledbits
Copy link
Copy Markdown
Contributor Author

By the way, there's really only a one-line change here (plus a comment) in subscribe.py (line 157/8). The remaining changes are my editor removing trailing whitespace from the files.

@toggledbits
Copy link
Copy Markdown
Contributor Author

Paging @pavoni, and feedback on this one?

@pavoni pavoni merged commit 42eacfe into maximvelichko:master May 16, 2018
@pavoni
Copy link
Copy Markdown
Collaborator

pavoni commented May 16, 2018

Sorry for the long delay - this looks great.

Thanks for the contribution, will release a new version shortly.

@pavoni
Copy link
Copy Markdown
Collaborator

pavoni commented May 16, 2018

Now released as 0.2.43.

Let me know if you'd like me to do the HA update.

@toggledbits
Copy link
Copy Markdown
Contributor Author

I'll leave it to you, please. I still need to bring my dev environment up to where I can run tox and handle all of the other steps separate from my live installation.

@pavoni
Copy link
Copy Markdown
Collaborator

pavoni commented May 19, 2018

Added here home-assistant/core#14540

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