python-roborock 4.14.0__tar.gz → 4.15.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.14.0 → python_roborock-4.15.0}/PKG-INFO +1 -1
- {python_roborock-4.14.0 → python_roborock-4.15.0}/pyproject.toml +1 -1
- python_roborock-4.15.0/roborock/devices/traits/b01/q10/status.py +41 -0
- python_roborock-4.14.0/roborock/devices/traits/b01/q10/status.py +0 -26
- {python_roborock-4.14.0 → python_roborock-4.15.0}/.gitignore +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/LICENSE +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/README.md +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/broadcast_protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/callbacks.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/cli.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/const.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q10/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q10/b01_q10_code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q10/b01_q10_containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q7/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q7/b01_q7_code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q7/b01_q7_containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/dyad/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/dyad/dyad_code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/dyad/dyad_containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/v1/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/v1/v1_clean_modes.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/v1/v1_code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/v1/v1_containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/zeo/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/zeo/zeo_code_mappings.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/zeo/zeo_containers.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/device_features.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/README.md +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/cache.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/device.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/device_manager.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/file_cache.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/rpc/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/rpc/a01_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/rpc/b01_q10_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/rpc/b01_q7_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/rpc/v1_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/a01/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/command.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/common.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/vacuum.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q7/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q7/clean_summary.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/traits_mixin.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/child_lock.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/clean_summary.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/command.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/common.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/consumeable.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/device_features.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/do_not_disturb.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/dust_collection_mode.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/flow_led_status.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/home.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/led_status.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/map_content.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/maps.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/network_info.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/rooms.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/routines.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/smart_wash_params.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/status.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/valley_electricity_timer.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/volume.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/wash_towel_mode.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/transport/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/transport/channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/transport/local_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/transport/mqtt_channel.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/diagnostics.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/exceptions.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/map/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/map/map_parser.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/mqtt/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/mqtt/health_manager.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/mqtt/roborock_session.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/mqtt/session.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocols/__init__.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocols/a01_protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocols/b01_q10_protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocols/b01_q7_protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/protocols/v1_protocol.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/py.typed +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/roborock_message.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/roborock_typing.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/util.py +0 -0
- {python_roborock-4.14.0 → python_roborock-4.15.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.15.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.15.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"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Status trait for Q10 B01 devices."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
from collections.abc import Callable
|
|
5
|
+
from typing import Any
|
|
6
|
+
|
|
7
|
+
from roborock.callbacks import CallbackList
|
|
8
|
+
from roborock.data.b01_q10.b01_q10_code_mappings import B01_Q10_DP
|
|
9
|
+
from roborock.data.b01_q10.b01_q10_containers import Q10Status
|
|
10
|
+
|
|
11
|
+
from .common import DpsDataConverter
|
|
12
|
+
|
|
13
|
+
_LOGGER = logging.getLogger(__name__)
|
|
14
|
+
|
|
15
|
+
_CONVERTER = DpsDataConverter.from_dataclass(Q10Status)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class StatusTrait(Q10Status):
|
|
19
|
+
"""Trait for managing the status of Q10 Roborock devices.
|
|
20
|
+
|
|
21
|
+
This is a thin wrapper around Q10Status that provides the Trait interface.
|
|
22
|
+
The current values reflect the most recently received data from the device.
|
|
23
|
+
New values can be requested through the `Q10PropertiesApi`'s `refresh` method.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self) -> None:
|
|
27
|
+
"""Initialize the status trait."""
|
|
28
|
+
super().__init__()
|
|
29
|
+
self._update_callbacks: CallbackList[dict[B01_Q10_DP, Any]] = CallbackList(logger=_LOGGER)
|
|
30
|
+
|
|
31
|
+
def add_update_listener(self, callback: Callable[[dict[B01_Q10_DP, Any]], None]) -> Callable[[], None]:
|
|
32
|
+
"""Register a callback for decoded DPS updates.
|
|
33
|
+
|
|
34
|
+
Returns a callable to remove the listener.
|
|
35
|
+
"""
|
|
36
|
+
return self._update_callbacks.add_callback(callback)
|
|
37
|
+
|
|
38
|
+
def update_from_dps(self, decoded_dps: dict[B01_Q10_DP, Any]) -> None:
|
|
39
|
+
"""Update the trait from raw DPS data."""
|
|
40
|
+
_CONVERTER.update_from_dps(self, decoded_dps)
|
|
41
|
+
self._update_callbacks(decoded_dps)
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"""Status trait for Q10 B01 devices."""
|
|
2
|
-
|
|
3
|
-
import logging
|
|
4
|
-
|
|
5
|
-
from roborock.data.b01_q10.b01_q10_containers import Q10Status
|
|
6
|
-
|
|
7
|
-
from .common import DpsDataConverter
|
|
8
|
-
|
|
9
|
-
_LOGGER = logging.getLogger(__name__)
|
|
10
|
-
|
|
11
|
-
_CONVERTER = DpsDataConverter.from_dataclass(Q10Status)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class StatusTrait(Q10Status):
|
|
15
|
-
"""Trait for managing the status of Q10 Roborock devices.
|
|
16
|
-
|
|
17
|
-
This is a thin wrapper around Q10Status that provides the Trait interface.
|
|
18
|
-
The current values reflect the most recently received data from the device.
|
|
19
|
-
New values can be requited through the `Q10PropertiesApi`'s `refresh` method.
|
|
20
|
-
"""
|
|
21
|
-
|
|
22
|
-
def update_from_dps(self, decoded_dps: dict) -> None:
|
|
23
|
-
"""Update the trait from raw DPS data."""
|
|
24
|
-
_CONVERTER.update_from_dps(self, decoded_dps)
|
|
25
|
-
# In the future we can register listeners and notify them here on update
|
|
26
|
-
# if `update_from_dps` performed any updates.
|
|
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.14.0 → python_roborock-4.15.0}/roborock/data/b01_q10/b01_q10_code_mappings.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/data/b01_q10/b01_q10_containers.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.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.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/__init__.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q10/command.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/b01/q7/__init__.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.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.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/clean_summary.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/device_features.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/do_not_disturb.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/dust_collection_mode.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.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.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/network_info.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.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.14.0 → python_roborock-4.15.0}/roborock/devices/traits/v1/wash_towel_mode.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.0}/roborock/devices/transport/local_channel.py
RENAMED
|
File without changes
|
{python_roborock-4.14.0 → python_roborock-4.15.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
|
|
File without changes
|