Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 96
feat: add better dock feature control#867
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
b548abbf430a0730ae010fbb6df917a25b9File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -650,22 +650,31 @@ class RoborockDockErrorCode(RoborockEnum): | ||
| class RoborockDockTypeCode(RoborockEnum): | ||
| unknown = -9999 | ||
| no_dock = 0 | ||
| auto_empty_dock = 1 | ||
| empty_wash_fill_dock = 3 | ||
| auto_empty_dock_pure = 5 | ||
| s7_max_ultra_dock = 6 | ||
| s8_dock = 7 | ||
| p10_dock = 8 | ||
| p10_pro_dock = 9 | ||
| s8_maxv_ultra_dock = 10 | ||
| qrevo_master_dock = 14 | ||
| qrevo_s_dock = 15 | ||
| saros_r10_dock = 16 | ||
| qrevo_curv_dock = 17 | ||
| saros_10_dock = 18 | ||
| qrevo_s5v_dock = 22 | ||
| saros_20_dock = 27 | ||
| o0_dock = 0 | ||
| o1_dock = 1 | ||
| o2_dock = 2 | ||
| o3_dock = 3 | ||
| oc_dock = 5 | ||
| o3_plus_dock = 6 | ||
| o4_dock = 7 | ||
| pearl_dock = 8 | ||
| pearl_plus_dock = 9 | ||
| o5_dock = 10 | ||
| shell_2s_dock = 11 | ||
| couple_dock = 13 | ||
| shell_3_dock = 14 | ||
| shell_2c_dock = 15 | ||
| shell_3s_dock = 16 | ||
| k1_dock = 17 | ||
| o6_dock = 18 | ||
| k1c_dock = 19 | ||
| k1s_dock = 20 | ||
| shell_e_dock = 21 | ||
| shell_2e_dock = 22 | ||
| shell_3c_dock = 23 | ||
| type_27_dock = 27 | ||
| k1c_lite_dock = 28 | ||
| shell_2e_lite_dock = 30 | ||
Lash-L marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| class RoborockDockDustCollectionModeCode(RoborockEnum): | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -239,6 +239,12 @@ def current_map(self) -> int | None: | ||
| return map_flag | ||
| return None | ||
| @property | ||
| def has_am(self) -> bool | None: | ||
| if self.dss is None: | ||
| return None | ||
| return (self.dss & 3) == 2 | ||
Copilot marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @property | ||
| def clear_water_box_status(self) -> ClearWaterBoxStatus | None: | ||
| if self.dss: | ||
| @@ -376,6 +382,12 @@ def current_map(self) -> int | None: | ||
| return map_flag | ||
| return None | ||
| @property | ||
| def has_am(self) -> bool | None: | ||
| if self.dss is None: | ||
| return None | ||
| return (self.dss & 3) == 2 | ||
Copilot marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| @property | ||
| def clear_water_box_status(self) -> ClearWaterBoxStatus | None: | ||
| if self.dss: | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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 believe we'll want to mark this as breaking given its used by callers (e.g. home assistant)
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.
will tag with breaking on merge! I believe I can just do a comment in the commit description and semantic will tag it.
i.e.
BREAKING CHANGE: RoborockDockTypeCode enum members were renamed, which may require downstream callers to update references