Commit 7baeb65
Q10: use readable YXCleanType values (vac_and_mop / vacuum / mop) (#794)
* refactor(q10): use readable YXCleanType values with legacy aliases
* fix(cli): make clean mode option case insensitive
* refactor(YXCleanType): move legacy values to a separate dictionary and update from_value method
* test(YXCleanType): add tests for legacy clean type string aliases
* refactor(YXCleanType): simplify clean type definitions and remove legacy alias support
* test(YXCleanType): add tests for readable public values and compatibility with aliases
* test(YXCleanType): add compatibility test for readable values in from_value method
* test(q10): update clean type code mapping tests
Co-authored-by: Allen Porter <allen.porter@gmail.com>
* fix(q10): restrict clean mode cli choices
* refactor(YXCleanType): remove legacy test for readable public values
* test(YXCleanType): update test for readable values to use canonical names
* test(YXCleanType): simplify test for readable values in from_value method
---------
Co-authored-by: Allen Porter <allen.porter@gmail.com>1 parent ad3ceea commit 7baeb65
File tree
4 files changed
+25
-6
lines changed- roborock
- data/b01_q10
- tests
- data
- devices/traits/b01/q10
4 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1275 | 1275 | | |
1276 | 1276 | | |
1277 | 1277 | | |
1278 | | - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1279 | 1284 | | |
1280 | 1285 | | |
1281 | 1286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments