Skip to content

Commit 270755b

Browse files
committed
chore: address comments
1 parent 8652ed7 commit 270755b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

roborock/data/v1/v1_containers.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def _requires_schema_code(requires_schema_code: str, default=None) -> Any:
121121

122122
@dataclass
123123
class Status(RoborockBase):
124-
"""This status will be depreciated in favor of StatusV2."""
124+
"""This status will be deprecated in favor of StatusV2."""
125125

126126
msg_ver: int | None = None
127127
msg_seq: int | None = None
@@ -395,9 +395,11 @@ def water_box_filter_status(self) -> int | None:
395395
return None
396396

397397
@property
398-
def clean_fluid_status(self) -> int | None:
398+
def clean_fluid_status(self) -> CleanFluidStatus | None:
399399
if self.dss:
400-
return (self.dss >> 10) & 3
400+
value = (self.dss >> 10) & 3
401+
if value == 0:
402+
return None # Feature not supported by this device
401403
return None
402404

403405
@property

0 commit comments

Comments
 (0)