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

Retry on error code -9999 #1363

Merged
merged 1 commit into from
Mar 19, 2022
Merged

Retry on error code -9999 #1363

merged 1 commit into from
Mar 19, 2022

Conversation

rytilahti
Copy link
Owner

Error code -9999 is a common occurence when sending invalid command to a device,
but which also seems to be recoverable error on others.

This PR changes the protocol behavior by retrying when -9999 response is received.

Fixes #757

Error code -9999 is a common occurence when sending invalid command to a device,
but which also seems to be recoverable error on others.

This PR changes the protocol behavior by retrying when -9999 response is received.
@rytilahti rytilahti added the bug label Mar 19, 2022
@codecov-commenter
Copy link

codecov-commenter commented Mar 19, 2022

Codecov Report

Merging #1363 (a4b73e9) into master (68ed95c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1363   +/-   ##
=======================================
  Coverage   82.20%   82.20%           
=======================================
  Files         109      109           
  Lines       11800    11801    +1     
  Branches     1386     1386           
=======================================
+ Hits         9700     9701    +1     
  Misses       1893     1893           
  Partials      207      207           
Impacted Files Coverage Δ
miio/miioprotocol.py 33.10% <100.00%> (+0.46%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@rytilahti rytilahti merged commit 2760a6d into master Mar 19, 2022
@rytilahti rytilahti deleted the fix/retry_on_9999 branch March 19, 2022 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants