-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
Added some parameters: Error code, Viomimode, Viomibintype #799
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -38,6 +38,8 @@ | |||||
530: "Mop and water tank missing", | ||||||
531: "Water tank is not installed", | ||||||
2101: "Unsufficient battery, continuing cleaning after recharge", | ||||||
2103: "Charging", | ||||||
2105: "Fully charged", | ||||||
} | ||||||
|
||||||
|
||||||
|
@@ -63,7 +65,7 @@ class ViomiMode(Enum): | |||||
Vacuum = 0 # No Mop, Vacuum only | ||||||
VacuumAndMop = 1 | ||||||
Mop = 2 | ||||||
|
||||||
Unknown = 4 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it would make more sense to add a log message(s) to the place(s) where the unknown mode is encountered, otherwise this looks good to go, thanks for the PR! 👍 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ping? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure I understand your comment, you mean a log message in the python-miio/miio/viomivacuum.py Line 145 in 5a3f2f4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to say that it's more useful to simply log the unknown state on the call site, like done in python-miio/miio/viomivacuum.py Line 125 in 5a3f2f4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mode |
||||||
|
||||||
class ViomiLanguage(Enum): | ||||||
CN = 1 # Chinese (default) | ||||||
|
@@ -94,7 +96,7 @@ class ViomiBinType(Enum): | |||||
Vacuum = 1 | ||||||
Water = 2 | ||||||
VacuumAndWater = 3 | ||||||
|
||||||
NoBin = 0 | ||||||
|
||||||
class ViomiWaterGrade(Enum): | ||||||
Low = 11 | ||||||
|
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.
I confirm this message, I have the same one
Thanks !