Skip to content

Commit 4257aa7

Browse files
authored
fix: add int for clean summary (#57)
1 parent a1aff2b commit 4257aa7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

roborock/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,8 @@ async def get_clean_summary(self) -> CleanSummary | None:
257257
clean_count=clean_count,
258258
records=records,
259259
)
260+
elif isinstance(clean_summary, int):
261+
return CleanSummary(clean_time=clean_summary)
260262
except RoborockTimeout as e:
261263
_LOGGER.error(e)
262264
return None

0 commit comments

Comments
 (0)