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 for usage responses missing more data than intended #70

Merged
merged 5 commits into from
Mar 3, 2024
Merged

Conversation

magico13
Copy link
Owner

@magico13 magico13 commented Mar 3, 2024

Also ran formatter, so that makes this a little harder to follow. Should be easier to follow PRs afterward, or just look at individual commits.

Main changes are in pyemvue.py and get_device_list_usage around line 150 (in the new side). That function now allows passing the retry parameters in case you don't want to use them or want different amounts, likely need to do something similar for the retries within auth.py.

Main bugfix in that function is to continue iterating over the whole set of data and not quitting immediately. That could result in missing data for anyone but is most obvious when there are two root devices and one is offline, if the offline device is first in the list then we will never get data for the second device. Sometimes the order changes but not consistently.

@magico13 magico13 marked this pull request as ready for review March 3, 2024 23:28
@magico13 magico13 merged commit 493b75e into master Mar 3, 2024
4 checks passed
@magico13 magico13 deleted the develop branch March 3, 2024 23:29
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.

1 participant