Skip to content

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

Development

Successfully merging this pull request may close these issues.

Miio Xiaomi Air Purifier availability blinking ({'code': -9999, 'message': 'user ack timeout'}) and Unable to discover a device at address

3 participants