Skip to content

Commit 459119b

Browse files
fix: get_room_mapping
1 parent 8437fcb commit 459119b

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
@@ -322,7 +322,7 @@ async def get_room_mapping(self, device_id: str) -> list[RoomMapping]:
322322
mapping = await self.send_command(device_id, RoborockCommand.GET_ROOM_MAPPING)
323323
if isinstance(mapping, list):
324324
return [
325-
RoomMapping(segment_id=segment_id, iot_id=segment_id) # type: ignore
325+
RoomMapping(segment_id=segment_id, iot_id=iot_id) # type: ignore
326326
for segment_id, iot_id in [unpack_list(room, 2) for room in mapping]
327327
]
328328
return []

0 commit comments

Comments
 (0)