python-roborock 4.11.0__tar.gz → 4.12.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_roborock-4.11.0 → python_roborock-4.12.0}/PKG-INFO +1 -1
- {python_roborock-4.11.0 → python_roborock-4.12.0}/pyproject.toml +1 -1
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/map/map_parser.py +20 -3
- {python_roborock-4.11.0 → python_roborock-4.12.0}/.gitignore +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/LICENSE +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/README.md +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/broadcast_protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/callbacks.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/cli.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/const.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q10/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q10/b01_q10_code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q10/b01_q10_containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q7/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q7/b01_q7_code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q7/b01_q7_containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/dyad/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/dyad/dyad_code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/dyad/dyad_containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/v1/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/v1/v1_clean_modes.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/v1/v1_code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/v1/v1_containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/zeo/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/zeo/zeo_code_mappings.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/zeo/zeo_containers.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/device_features.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/README.md +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/cache.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/device.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/device_manager.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/file_cache.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/rpc/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/rpc/a01_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/rpc/b01_q10_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/rpc/b01_q7_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/rpc/v1_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/a01/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q10/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q10/command.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q10/vacuum.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q7/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q7/clean_summary.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/traits_mixin.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/child_lock.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/clean_summary.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/command.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/common.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/consumeable.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/device_features.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/do_not_disturb.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/dust_collection_mode.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/flow_led_status.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/home.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/led_status.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/map_content.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/maps.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/network_info.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/rooms.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/routines.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/smart_wash_params.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/status.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/valley_electricity_timer.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/volume.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/wash_towel_mode.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/local_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/mqtt_channel.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/diagnostics.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/exceptions.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/map/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/mqtt/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/mqtt/health_manager.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/mqtt/roborock_session.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/mqtt/session.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocols/__init__.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocols/a01_protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocols/b01_q10_protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocols/b01_q7_protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/protocols/v1_protocol.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/py.typed +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/roborock_message.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/roborock_typing.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/util.py +0 -0
- {python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/web_api.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-roborock
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.12.0
|
|
4
4
|
Summary: A package to control Roborock vacuums.
|
|
5
5
|
Project-URL: Repository, https://github.com/humbertogontijo/python-roborock
|
|
6
6
|
Project-URL: Documentation, https://python-roborock.readthedocs.io/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-roborock"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.12.0"
|
|
4
4
|
description = "A package to control Roborock vacuums."
|
|
5
5
|
authors = [{ name = "humbertogontijo", email = "humbertogontijo@users.noreply.github.com" }, {name="Lash-L"}, {name="allenporter"}]
|
|
6
6
|
requires-python = ">=3.11, <4"
|
|
@@ -51,6 +51,12 @@ class MapParserConfig:
|
|
|
51
51
|
show_background: bool = True
|
|
52
52
|
"""Whether to show the background of the map."""
|
|
53
53
|
|
|
54
|
+
show_walls: bool = True
|
|
55
|
+
"""Whether to show the walls of the map."""
|
|
56
|
+
|
|
57
|
+
show_rooms: bool = True
|
|
58
|
+
"""Whether to show the rooms of the map."""
|
|
59
|
+
|
|
54
60
|
map_scale: int = DEFAULT_MAP_SCALE
|
|
55
61
|
"""Scale factor for the map."""
|
|
56
62
|
|
|
@@ -94,11 +100,22 @@ class MapParser:
|
|
|
94
100
|
|
|
95
101
|
def _create_map_data_parser(config: MapParserConfig) -> RoborockMapDataParser:
|
|
96
102
|
"""Create a RoborockMapDataParser based on the config entry."""
|
|
97
|
-
|
|
103
|
+
color_dicts = {}
|
|
104
|
+
room_colors = {}
|
|
105
|
+
|
|
98
106
|
if not config.show_background:
|
|
99
|
-
|
|
107
|
+
color_dicts[SupportedColor.MAP_OUTSIDE] = (0, 0, 0, 0)
|
|
108
|
+
|
|
109
|
+
if not config.show_walls:
|
|
110
|
+
color_dicts[SupportedColor.GREY_WALL] = (0, 0, 0, 0)
|
|
111
|
+
color_dicts[SupportedColor.MAP_WALL] = (0, 0, 0, 0)
|
|
112
|
+
color_dicts[SupportedColor.MAP_WALL_V2] = (0, 0, 0, 0)
|
|
113
|
+
|
|
114
|
+
if not config.show_rooms:
|
|
115
|
+
room_colors = {str(x): (0, 0, 0, 0) for x in range(1, 32)}
|
|
116
|
+
|
|
100
117
|
return RoborockMapDataParser(
|
|
101
|
-
|
|
118
|
+
ColorsPalette(color_dicts, room_colors),
|
|
102
119
|
Sizes({k: v * config.map_scale for k, v in Sizes.SIZES.items() if k != Size.MOP_PATH_WIDTH}),
|
|
103
120
|
config.drawables,
|
|
104
121
|
ImageConfig(scale=config.map_scale),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q10/b01_q10_code_mappings.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q10/b01_q10_containers.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/data/b01_q7/b01_q7_code_mappings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q10/__init__.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q10/command.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q7/__init__.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/b01/q7/clean_summary.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/clean_summary.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/device_features.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/do_not_disturb.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/dust_collection_mode.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/flow_led_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/network_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/smart_wash_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/traits/v1/wash_towel_mode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/local_channel.py
RENAMED
|
File without changes
|
{python_roborock-4.11.0 → python_roborock-4.12.0}/roborock/devices/transport/mqtt_channel.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|