From e66a91edaf6fedf5d4b2ab9117b7759295add492 Mon Sep 17 00:00:00 2001 From: Luke Lashley Date: Mon, 28 Oct 2024 12:26:44 -0400 Subject: [PATCH] fix: check that clean area is not a str (#230) --- roborock/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roborock/containers.py b/roborock/containers.py index 795b1f5..6a7ab06 100644 --- a/roborock/containers.py +++ b/roborock/containers.py @@ -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