File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,13 @@ class DustBagStatus(RoborockDssCodes):
123123 full = 34
124124
125125
126+ class CleanFluidStatus (RoborockDssCodes ):
127+ """Status of the cleaning fluid container."""
128+
129+ empty_not_installed = 1
130+ okay = 2
131+
132+
126133class RoborockErrorCode (RoborockEnum ):
127134 none = 0
128135 lidar_blocked = 1
Original file line number Diff line number Diff line change 3939
4040from ..containers import RoborockBase , RoborockBaseTimer , _attr_repr
4141from .v1_code_mappings import (
42+ CleanFluidStatus ,
4243 ClearWaterBoxStatus ,
4344 DirtyWaterBoxStatus ,
4445 DustBagStatus ,
@@ -229,9 +230,12 @@ def water_box_filter_status(self) -> int | None:
229230 return None
230231
231232 @property
232- def clean_fluid_status (self ) -> int | None :
233+ def clean_fluid_status (self ) -> CleanFluidStatus | None :
233234 if self .dss :
234- return (self .dss >> 10 ) & 3
235+ value = (self .dss >> 10 ) & 3
236+ if value == 0 :
237+ return None # Feature not supported by this device
238+ return CleanFluidStatus (value )
235239 return None
236240
237241 @property
You can’t perform that action at this time.
0 commit comments