python-roborock 3.7.2__tar.gz → 3.7.4__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-3.7.2 → python_roborock-3.7.4}/PKG-INFO +1 -1
- {python_roborock-3.7.2 → python_roborock-3.7.4}/pyproject.toml +2 -2
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/containers.py +3 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/clean_summary.py +2 -3
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/common.py +1 -2
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/device_features.py +5 -7
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/do_not_disturb.py +4 -13
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/home.py +2 -3
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/network_info.py +3 -6
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/valley_electricity_timer.py +3 -10
- {python_roborock-3.7.2 → python_roborock-3.7.4}/.gitignore +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/LICENSE +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/README.md +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/api.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/broadcast_protocol.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/callbacks.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/cli.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/cloud_api.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/command_cache.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/const.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q10/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q10/b01_q10_code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q10/b01_q10_containers.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q7/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q7/b01_q7_code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q7/b01_q7_containers.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/dyad/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/dyad/dyad_code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/dyad/dyad_containers.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/v1/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/v1/v1_clean_modes.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/v1/v1_code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/v1/v1_containers.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/zeo/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/zeo/zeo_code_mappings.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/data/zeo/zeo_containers.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/device_features.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/README.md +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/a01_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/b01_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/cache.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/device.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/device_manager.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/local_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/mqtt_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/a01/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/b01/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/traits_mixin.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/child_lock.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/command.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/consumeable.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/dust_collection_mode.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/flow_led_status.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/led_status.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/map_content.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/maps.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/rooms.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/routines.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/smart_wash_params.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/status.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/volume.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/wash_towel_mode.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/v1_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/v1_rpc_channel.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/exceptions.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/map/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/map/map_parser.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/mqtt/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/mqtt/roborock_session.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/mqtt/session.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/protocol.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/protocols/a01_protocol.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/protocols/b01_protocol.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/protocols/v1_protocol.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/py.typed +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/roborock_future.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/roborock_message.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/roborock_typing.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/util.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_client_v1.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_local_client_v1.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_mqtt_client_v1.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_a01_apis/__init__.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_a01_apis/roborock_client_a01.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_a01_apis/roborock_mqtt_client_a01.py +0 -0
- {python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/web_api.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-roborock
|
|
3
|
-
Version: 3.7.
|
|
3
|
+
Version: 3.7.4
|
|
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 = "3.7.
|
|
3
|
+
version = "3.7.4"
|
|
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"
|
|
@@ -44,7 +44,7 @@ dev = [
|
|
|
44
44
|
"pytest",
|
|
45
45
|
"pre-commit>=3.5,<5.0",
|
|
46
46
|
"mypy",
|
|
47
|
-
"ruff==0.14.
|
|
47
|
+
"ruff==0.14.4",
|
|
48
48
|
"codespell",
|
|
49
49
|
"pyshark>=0.6,<0.7",
|
|
50
50
|
"aioresponses>=0.7.7,<0.8",
|
|
@@ -14,7 +14,7 @@ class CleanSummaryTrait(CleanSummaryWithDetail, common.V1TraitMixin):
|
|
|
14
14
|
|
|
15
15
|
command = RoborockCommand.GET_CLEAN_SUMMARY
|
|
16
16
|
|
|
17
|
-
async def refresh(self) ->
|
|
17
|
+
async def refresh(self) -> None:
|
|
18
18
|
"""Refresh the clean summary data and last clean record.
|
|
19
19
|
|
|
20
20
|
Assumes that the clean summary has already been fetched.
|
|
@@ -23,10 +23,9 @@ class CleanSummaryTrait(CleanSummaryWithDetail, common.V1TraitMixin):
|
|
|
23
23
|
if not self.records:
|
|
24
24
|
_LOGGER.debug("No clean records available in clean summary.")
|
|
25
25
|
self.last_clean_record = None
|
|
26
|
-
return
|
|
26
|
+
return
|
|
27
27
|
last_record_id = self.records[-1]
|
|
28
28
|
self.last_clean_record = await self.get_clean_record(last_record_id)
|
|
29
|
-
return self
|
|
30
29
|
|
|
31
30
|
@classmethod
|
|
32
31
|
def _parse_type_response(cls, response: common.V1ResponseData) -> Self:
|
|
@@ -76,7 +76,7 @@ class V1TraitMixin(ABC):
|
|
|
76
76
|
raise ValueError("Device trait in invalid state")
|
|
77
77
|
return self._rpc_channel
|
|
78
78
|
|
|
79
|
-
async def refresh(self) ->
|
|
79
|
+
async def refresh(self) -> None:
|
|
80
80
|
"""Refresh the contents of this trait."""
|
|
81
81
|
response = await self.rpc_channel.send_command(self.command)
|
|
82
82
|
new_data = self._parse_response(response)
|
|
@@ -84,7 +84,6 @@ class V1TraitMixin(ABC):
|
|
|
84
84
|
raise ValueError(f"Internal error, unexpected response type: {new_data!r}")
|
|
85
85
|
_LOGGER.debug("Refreshed %s: %s", self.__class__.__name__, new_data)
|
|
86
86
|
self._update_trait_values(new_data)
|
|
87
|
-
return self
|
|
88
87
|
|
|
89
88
|
def _update_trait_values(self, new_data: RoborockBase) -> None:
|
|
90
89
|
"""Update the values of this trait from another instance."""
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/device_features.py
RENAMED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
from dataclasses import fields
|
|
2
|
-
from typing import Self
|
|
3
2
|
|
|
4
3
|
from roborock.data import AppInitStatus, RoborockProductNickname
|
|
5
4
|
from roborock.device_features import DeviceFeatures
|
|
@@ -13,7 +12,7 @@ class DeviceFeaturesTrait(DeviceFeatures, common.V1TraitMixin):
|
|
|
13
12
|
|
|
14
13
|
command = RoborockCommand.APP_GET_INIT_STATUS
|
|
15
14
|
|
|
16
|
-
def __init__(self, product_nickname: RoborockProductNickname, cache: Cache) -> None:
|
|
15
|
+
def __init__(self, product_nickname: RoborockProductNickname, cache: Cache) -> None: # pylint: disable=super-init-not-called
|
|
17
16
|
"""Initialize MapContentTrait."""
|
|
18
17
|
self._nickname = product_nickname
|
|
19
18
|
self._cache = cache
|
|
@@ -22,7 +21,7 @@ class DeviceFeaturesTrait(DeviceFeatures, common.V1TraitMixin):
|
|
|
22
21
|
for field in fields(self):
|
|
23
22
|
setattr(self, field.name, False)
|
|
24
23
|
|
|
25
|
-
async def refresh(self) ->
|
|
24
|
+
async def refresh(self) -> None:
|
|
26
25
|
"""Refresh the contents of this trait.
|
|
27
26
|
|
|
28
27
|
This will use cached device features if available since they do not
|
|
@@ -32,12 +31,11 @@ class DeviceFeaturesTrait(DeviceFeatures, common.V1TraitMixin):
|
|
|
32
31
|
cache_data = await self._cache.get()
|
|
33
32
|
if cache_data.device_features is not None:
|
|
34
33
|
self._update_trait_values(cache_data.device_features)
|
|
35
|
-
return
|
|
34
|
+
return
|
|
36
35
|
# Save cached device features
|
|
37
|
-
|
|
38
|
-
cache_data.device_features =
|
|
36
|
+
await super().refresh()
|
|
37
|
+
cache_data.device_features = self
|
|
39
38
|
await self._cache.set(cache_data)
|
|
40
|
-
return device_features
|
|
41
39
|
|
|
42
40
|
def _parse_response(self, response: common.V1ResponseData) -> DeviceFeatures:
|
|
43
41
|
"""Parse the response from the device into a MapContentTrait instance."""
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/do_not_disturb.py
RENAMED
|
@@ -17,7 +17,7 @@ class DoNotDisturbTrait(DnDTimer, common.V1TraitMixin, common.RoborockSwitchBase
|
|
|
17
17
|
|
|
18
18
|
async def set_dnd_timer(self, dnd_timer: DnDTimer) -> None:
|
|
19
19
|
"""Set the Do Not Disturb (DND) timer settings of the device."""
|
|
20
|
-
await self.rpc_channel.send_command(RoborockCommand.SET_DND_TIMER, params=dnd_timer.
|
|
20
|
+
await self.rpc_channel.send_command(RoborockCommand.SET_DND_TIMER, params=dnd_timer.as_list())
|
|
21
21
|
|
|
22
22
|
async def clear_dnd_timer(self) -> None:
|
|
23
23
|
"""Clear the Do Not Disturb (DND) timer settings of the device."""
|
|
@@ -27,18 +27,9 @@ class DoNotDisturbTrait(DnDTimer, common.V1TraitMixin, common.RoborockSwitchBase
|
|
|
27
27
|
"""Set the Do Not Disturb (DND) timer settings of the device."""
|
|
28
28
|
await self.rpc_channel.send_command(
|
|
29
29
|
RoborockCommand.SET_DND_TIMER,
|
|
30
|
-
params=
|
|
31
|
-
**self.as_dict(),
|
|
32
|
-
_ENABLED_PARAM: 1,
|
|
33
|
-
},
|
|
30
|
+
params=self.as_list(),
|
|
34
31
|
)
|
|
35
32
|
|
|
36
33
|
async def disable(self) -> None:
|
|
37
|
-
"""
|
|
38
|
-
await self.rpc_channel.send_command(
|
|
39
|
-
RoborockCommand.SET_DND_TIMER,
|
|
40
|
-
params={
|
|
41
|
-
**self.as_dict(),
|
|
42
|
-
_ENABLED_PARAM: 0,
|
|
43
|
-
},
|
|
44
|
-
)
|
|
34
|
+
"""Disable the Do Not Disturb (DND) timer settings of the device."""
|
|
35
|
+
await self.rpc_channel.send_command(RoborockCommand.CLOSE_DND_TIMER)
|
|
@@ -158,7 +158,7 @@ class HomeTrait(RoborockBase, common.V1TraitMixin):
|
|
|
158
158
|
home_map_info[map_info.map_flag] = combined_map_info
|
|
159
159
|
return home_map_info, home_map_content
|
|
160
160
|
|
|
161
|
-
async def refresh(self) ->
|
|
161
|
+
async def refresh(self) -> None:
|
|
162
162
|
"""Refresh current map's underlying map and room data, updating cache as needed.
|
|
163
163
|
|
|
164
164
|
This will only refresh the current map's data and will not populate non
|
|
@@ -171,7 +171,7 @@ class HomeTrait(RoborockBase, common.V1TraitMixin):
|
|
|
171
171
|
# then we'll fall through below to refresh the current map only.
|
|
172
172
|
try:
|
|
173
173
|
await self.discover_home()
|
|
174
|
-
return
|
|
174
|
+
return
|
|
175
175
|
except RoborockDeviceBusy:
|
|
176
176
|
_LOGGER.debug("Cannot refresh home data while device is busy cleaning")
|
|
177
177
|
|
|
@@ -189,7 +189,6 @@ class HomeTrait(RoborockBase, common.V1TraitMixin):
|
|
|
189
189
|
await self._update_current_map(
|
|
190
190
|
map_flag, combined_map_info, new_map_content, update_cache=self._discovery_completed
|
|
191
191
|
)
|
|
192
|
-
return self
|
|
193
192
|
|
|
194
193
|
@property
|
|
195
194
|
def home_map_info(self) -> dict[int, CombinedMapInfo] | None:
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import logging
|
|
6
|
-
from typing import Self
|
|
7
6
|
|
|
8
7
|
from roborock.data import NetworkInfo
|
|
9
8
|
from roborock.devices.cache import Cache
|
|
@@ -25,20 +24,20 @@ class NetworkInfoTrait(NetworkInfo, common.V1TraitMixin):
|
|
|
25
24
|
|
|
26
25
|
command = RoborockCommand.GET_NETWORK_INFO
|
|
27
26
|
|
|
28
|
-
def __init__(self, device_uid: str, cache: Cache) -> None:
|
|
27
|
+
def __init__(self, device_uid: str, cache: Cache) -> None: # pylint: disable=super-init-not-called
|
|
29
28
|
"""Initialize the trait."""
|
|
30
29
|
self._device_uid = device_uid
|
|
31
30
|
self._cache = cache
|
|
32
31
|
self.ip = ""
|
|
33
32
|
|
|
34
|
-
async def refresh(self) ->
|
|
33
|
+
async def refresh(self) -> None:
|
|
35
34
|
"""Refresh the network info from the cache."""
|
|
36
35
|
|
|
37
36
|
cache_data = await self._cache.get()
|
|
38
37
|
if cache_data.network_info and (network_info := cache_data.network_info.get(self._device_uid)):
|
|
39
38
|
_LOGGER.debug("Using cached network info for device %s", self._device_uid)
|
|
40
39
|
self._update_trait_values(network_info)
|
|
41
|
-
return
|
|
40
|
+
return
|
|
42
41
|
|
|
43
42
|
# Load from device if not in cache
|
|
44
43
|
_LOGGER.debug("No cached network info for device %s, fetching from device", self._device_uid)
|
|
@@ -48,8 +47,6 @@ class NetworkInfoTrait(NetworkInfo, common.V1TraitMixin):
|
|
|
48
47
|
cache_data.network_info[self._device_uid] = self
|
|
49
48
|
await self._cache.set(cache_data)
|
|
50
49
|
|
|
51
|
-
return self
|
|
52
|
-
|
|
53
50
|
def _parse_response(self, response: common.V1ResponseData) -> NetworkInfo:
|
|
54
51
|
"""Parse the response from the device into a NetworkInfo."""
|
|
55
52
|
if not isinstance(response, dict):
|
|
@@ -18,7 +18,7 @@ class ValleyElectricityTimerTrait(ValleyElectricityTimer, common.V1TraitMixin, c
|
|
|
18
18
|
|
|
19
19
|
async def set_timer(self, timer: ValleyElectricityTimer) -> None:
|
|
20
20
|
"""Set the Valley Electricity Timer settings of the device."""
|
|
21
|
-
await self.rpc_channel.send_command(RoborockCommand.SET_VALLEY_ELECTRICITY_TIMER, params=timer.
|
|
21
|
+
await self.rpc_channel.send_command(RoborockCommand.SET_VALLEY_ELECTRICITY_TIMER, params=timer.as_list())
|
|
22
22
|
|
|
23
23
|
async def clear_timer(self) -> None:
|
|
24
24
|
"""Clear the Valley Electricity Timer settings of the device."""
|
|
@@ -28,18 +28,11 @@ class ValleyElectricityTimerTrait(ValleyElectricityTimer, common.V1TraitMixin, c
|
|
|
28
28
|
"""Enable the Valley Electricity Timer settings of the device."""
|
|
29
29
|
await self.rpc_channel.send_command(
|
|
30
30
|
RoborockCommand.SET_VALLEY_ELECTRICITY_TIMER,
|
|
31
|
-
params=
|
|
32
|
-
**self.as_dict(),
|
|
33
|
-
_ENABLED_PARAM: 1,
|
|
34
|
-
},
|
|
31
|
+
params=self.as_list(),
|
|
35
32
|
)
|
|
36
33
|
|
|
37
34
|
async def disable(self) -> None:
|
|
38
35
|
"""Disable the Valley Electricity Timer settings of the device."""
|
|
39
36
|
await self.rpc_channel.send_command(
|
|
40
|
-
RoborockCommand.
|
|
41
|
-
params={
|
|
42
|
-
**self.as_dict(),
|
|
43
|
-
_ENABLED_PARAM: 0,
|
|
44
|
-
},
|
|
37
|
+
RoborockCommand.CLOSE_VALLEY_ELECTRICITY_TIMER,
|
|
45
38
|
)
|
|
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-3.7.2 → python_roborock-3.7.4}/roborock/data/b01_q10/b01_q10_code_mappings.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/dust_collection_mode.py
RENAMED
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/flow_led_status.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/smart_wash_params.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/devices/traits/v1/wash_towel_mode.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
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_client_v1.py
RENAMED
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_local_client_v1.py
RENAMED
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_1_apis/roborock_mqtt_client_v1.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_roborock-3.7.2 → python_roborock-3.7.4}/roborock/version_a01_apis/roborock_client_a01.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|