Skip to content

Commit 84c95e3

Browse files
authored
fix: check dock_type is not none (#38)
1 parent a5a37e3 commit 84c95e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ async def get_prop(self, device_id: str) -> RoborockDeviceProp | None:
280280
if clean_summary and clean_summary.records and len(clean_summary.records) > 0:
281281
last_clean_record = await self.get_clean_record(device_id, clean_summary.records[0])
282282
dock_summary = None
283-
if status and status.dock_type != RoborockDockTypeCode["0"]:
283+
if status and status.dock_type is not None and status.dock_type != RoborockDockTypeCode["0"]:
284284
dock_summary = await self.get_dock_summary(device_id, status.dock_type)
285285
if any([status, dnd_timer, clean_summary, consumable]):
286286
return RoborockDeviceProp(

0 commit comments

Comments
 (0)