-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
add xiaomi.airp.va2b support #1940
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1940 +/- ##
==========================================
+ Coverage 81.41% 81.67% +0.25%
==========================================
Files 193 197 +4
Lines 18636 19176 +540
Branches 4045 4208 +163
==========================================
+ Hits 15173 15662 +489
- Misses 3180 3220 +40
- Partials 283 294 +11 ☔ View full report in Codecov by Sentry. |
By randomly comment out some of the properties make the fetching process works. |
Problem confirmed. It looks like the default |
@@ -558,7 +558,6 @@ def status(self) -> RoidmiVacuumStatus: | |||
return RoidmiVacuumStatus( | |||
{ | |||
prop["did"]: prop["value"] if prop["code"] == 0 else None | |||
# max_properties limmit to 10 to avoid "Checksum error" messages from the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this comment should be removed, since the max_properties
is not properly limited at all, and there is also a typo in this comment. Maybe it is copy-pasted from somewhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's probably just due to some copy&pasting. Please remove changes to roidmivacuum_miot from this PR (as they are unrelated, but feel free to create a separate PR to remove those if you wish!) and then this is good to go 👍
@@ -569,7 +568,6 @@ def consumable_status(self) -> RoidmiConsumableStatus: | |||
return RoidmiConsumableStatus( | |||
{ | |||
prop["did"]: prop["value"] if prop["code"] == 0 else None | |||
# max_properties limmit to 10 to avoid "Checksum error" messages from the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here.
@@ -580,7 +578,6 @@ def cleaning_summary(self) -> RoidmiCleaningSummary: | |||
return RoidmiCleaningSummary( | |||
{ | |||
prop["did"]: prop["value"] if prop["code"] == 0 else None | |||
# max_properties limmit to 10 to avoid "Checksum error" messages from the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and same here.
I don't think I would be able to fix the readthedocs CI properly, so that this commit is now ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @dsh0416! 👍
Please remove the unrelated roidmivacuum changes from this PR and this is ready to merged.
@@ -558,7 +558,6 @@ def status(self) -> RoidmiVacuumStatus: | |||
return RoidmiVacuumStatus( | |||
{ | |||
prop["did"]: prop["value"] if prop["code"] == 0 else None | |||
# max_properties limmit to 10 to avoid "Checksum error" messages from the device. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's probably just due to some copy&pasting. Please remove changes to roidmivacuum_miot from this PR (as they are unrelated, but feel free to create a separate PR to remove those if you wish!) and then this is good to go 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggest for revert
reverted. Thank you for reviewing, and I may move the comments changes to a further PR. @rytilahti |
Meanwhile, for
xiaomi.airp.va2b
, it would cause{'code': -9999, 'message': 'user ack timeout'}
when queryingstatus
, and I am still figuring why.