|
7 | 7 | from ..containers import RoborockBase |
8 | 8 | from .b01_q7_code_mappings import ( |
9 | 9 | B01Fault, |
| 10 | + CleanPathPreferenceMapping, |
| 11 | + CleanRepeatMapping, |
10 | 12 | CleanTypeMapping, |
11 | 13 | SCWindMapping, |
12 | 14 | WaterLevelMapping, |
@@ -94,10 +96,10 @@ class B01Props(RoborockBase): |
94 | 96 | mop_life: int | None = None |
95 | 97 | main_sensor: int | None = None |
96 | 98 | net_status: NetStatus | None = None |
97 | | - repeat_state: int | None = None |
| 99 | + repeat_state: CleanRepeatMapping | None = None |
98 | 100 | tank_state: int | None = None |
99 | 101 | sweep_type: int | None = None |
100 | | - clean_path_preference: int | None = None |
| 102 | + clean_path_preference: CleanPathPreferenceMapping | None = None |
101 | 103 | cloth_state: int | None = None |
102 | 104 | time_zone: int | None = None |
103 | 105 | time_zone_info: str | None = None |
@@ -210,6 +212,16 @@ def work_mode_name(self) -> str | None: |
210 | 212 | """Returns the name of the current work mode.""" |
211 | 213 | return self.work_mode.value if self.work_mode is not None else None |
212 | 214 |
|
| 215 | + @property |
| 216 | + def repeat_state_name(self) -> str | None: |
| 217 | + """Returns the name of the current repeat state.""" |
| 218 | + return self.repeat_state.value if self.repeat_state is not None else None |
| 219 | + |
| 220 | + @property |
| 221 | + def clean_path_preference_name(self) -> str | None: |
| 222 | + """Returns the name of the current clean path preference.""" |
| 223 | + return self.clean_path_preference.value if self.clean_path_preference is not None else None |
| 224 | + |
213 | 225 |
|
214 | 226 | @dataclass |
215 | 227 | class CleanRecordDetail(RoborockBase): |
|
0 commit comments