Skip to content

Commit e66a91e

Browse files
authored
fix: check that clean area is not a str (#230)
1 parent e987c17 commit e66a91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ class CleanSummary(RoborockBase):
667667
last_clean_t: int | None = None
668668

669669
def __post_init__(self) -> None:
670-
if isinstance(self.clean_area, list):
670+
if isinstance(self.clean_area, list | str):
671671
_LOGGER.warning(f"Clean area is a unexpected type! Please give the following in a issue: {self.clean_area}")
672672
else:
673673
self.square_meter_clean_area = round(self.clean_area / 1000000, 1) if self.clean_area is not None else None

0 commit comments

Comments
 (0)