Skip to content

Commit 238f897

Browse files
committed
refactor: update rooms_map dictionary key type from string to integer
1 parent dcf4df9 commit 238f897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/devices/traits/v1/home.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def _refresh_map_info(self, map_info: MultiMapsListMapInfo) -> CombinedMap
125125
# - RoomsTrait rooms that are pulled from the cloud API
126126
# We always prefer the RoomsTrait room names since they are always newer and
127127
# just refreshed above.
128-
rooms_map: dict[str, NamedRoomMapping] = {
128+
rooms_map: dict[int, NamedRoomMapping] = {
129129
**map_info.rooms_map,
130130
**{room.segment_id: room for room in self._rooms_trait.rooms or ()},
131131
}

0 commit comments

Comments
 (0)