|
3 | 3 | from ..containers import RoborockBase |
4 | 4 | from .b01_q7_code_mappings import ( |
5 | 5 | B01Fault, |
| 6 | + CleanPathPreferenceMapping, |
| 7 | + CleanRepeatMapping, |
6 | 8 | CleanTypeMapping, |
7 | 9 | SCWindMapping, |
8 | 10 | WaterLevelMapping, |
@@ -90,10 +92,10 @@ class B01Props(RoborockBase): |
90 | 92 | mop_life: int | None = None |
91 | 93 | main_sensor: int | None = None |
92 | 94 | net_status: NetStatus | None = None |
93 | | - repeat_state: int | None = None |
| 95 | + repeat_state: CleanRepeatMapping | None = None |
94 | 96 | tank_state: int | None = None |
95 | 97 | sweep_type: int | None = None |
96 | | - clean_path_preference: int | None = None |
| 98 | + clean_path_preference: CleanPathPreferenceMapping | None = None |
97 | 99 | cloth_state: int | None = None |
98 | 100 | time_zone: int | None = None |
99 | 101 | time_zone_info: str | None = None |
@@ -205,3 +207,13 @@ def wind_name(self) -> str | None: |
205 | 207 | def work_mode_name(self) -> str | None: |
206 | 208 | """Returns the name of the current work mode.""" |
207 | 209 | return self.work_mode.value if self.work_mode is not None else None |
| 210 | + |
| 211 | + @property |
| 212 | + def repeat_state_name(self) -> str | None: |
| 213 | + """Returns the name of the current repeat state.""" |
| 214 | + return self.repeat_state.value if self.repeat_state is not None else None |
| 215 | + |
| 216 | + @property |
| 217 | + def clean_path_preference_name(self) -> str | None: |
| 218 | + """Returns the name of the current clean path preference.""" |
| 219 | + return self.clean_path_preference.value if self.clean_path_preference is not None else None |
0 commit comments