Skip to content

Commit

Permalink
fix: check that clean area is not a str (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L authored Oct 28, 2024
1 parent e987c17 commit e66a91e
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 @@ -667,7 +667,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 e66a91e

Please sign in to comment.