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

Re-query missing responses after multi request errors #850

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

sdb9696
Copy link
Collaborator

@sdb9696 sdb9696 commented Apr 20, 2024

When smart devices encounter an error during a multipleRequest they return the previous successes and the current error and stop processing subsequent requests. This PR checks the responses returned and re-queries individually for any missing responses so that individual errors do not break other components.

Copy link

codecov bot commented Apr 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (master@203bd79). Click here to learn what that means.
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #850   +/-   ##
=========================================
  Coverage          ?   89.01%           
=========================================
  Files             ?       65           
  Lines             ?     4588           
  Branches          ?     1132           
=========================================
  Hits              ?     4084           
  Misses            ?      420           
  Partials          ?       84           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@rytilahti rytilahti left a comment

Choose a reason for hiding this comment

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

LGTM, thanks 👍

@rytilahti rytilahti added the enhancement New feature or request label Apr 20, 2024
@rytilahti rytilahti merged commit 214b26a into python-kasa:master Apr 20, 2024
29 checks passed
@sdb9696 sdb9696 deleted the requery_on_error branch April 23, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants