Skip to content

Commit 987e51e

Browse files
committed
fix(map): removed unnecessary conversion of empty dict to none
1 parent 6b276e0 commit 987e51e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/map/map_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _create_map_data_parser(config: MapParserConfig) -> RoborockMapDataParser:
115115
room_colors = {str(x): (0, 0, 0, 0) for x in range(1, 32)}
116116

117117
return RoborockMapDataParser(
118-
ColorsPalette(color_dicts if len(color_dicts) else None, room_colors if len(room_colors) else None),
118+
ColorsPalette(color_dicts, room_colors),
119119
Sizes({k: v * config.map_scale for k, v in Sizes.SIZES.items() if k != Size.MOP_PATH_WIDTH}),
120120
config.drawables,
121121
ImageConfig(scale=config.map_scale),

0 commit comments

Comments
 (0)