Skip to content

Commit

Permalink
fix: Check that clean area is not a str
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Oct 28, 2024
1 parent 2731bce commit 9cfb392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roborock/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ class CleanSummary(RoborockBase):
last_clean_t: int | None = None

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

0 comments on commit 9cfb392

Please sign in to comment.