python-roborock 5.18.0__py3-none-any.whl → 5.19.0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-roborock
3
- Version: 5.18.0
3
+ Version: 5.19.0
4
4
  Summary: A package to control Roborock vacuums.
5
5
  Project-URL: Repository, https://github.com/python-roborock/python-roborock
6
6
  Project-URL: Documentation, https://python-roborock.readthedocs.io/
@@ -52,7 +52,7 @@ roborock/devices/traits/b01/q10/command.py,sha256=mcWNRSq72bfa79_EjKRgMEIDTV3vWF
52
52
  roborock/devices/traits/b01/q10/remote.py,sha256=ZvURdYP023vsJF6Mx9rA004bi6tOPAjrL4o7dC1baFQ,1257
53
53
  roborock/devices/traits/b01/q10/status.py,sha256=dIuUpRVjOVXvFr-EA_7lV9KCF7XXjE4vQOFsd-Bbh8w,1133
54
54
  roborock/devices/traits/b01/q10/vacuum.py,sha256=7PUPWaLqj3jsNLw87oyf1oz2UXckF4Z5Fh6ZYqeY7Ww,2280
55
- roborock/devices/traits/b01/q7/__init__.py,sha256=y-Bwe6KhAHghTnaD9W1M2ARei2yc7hMUUz-hU2Q8c9g,7063
55
+ roborock/devices/traits/b01/q7/__init__.py,sha256=gHgIK-KBLDJDEneBmSJfTa38sumj1IuZl-lcvoZeYLY,8116
56
56
  roborock/devices/traits/b01/q7/clean_summary.py,sha256=Tod29LUHBsOS0XL8SU1SdBQEHWTCifGZVCwSWGhYpy8,2933
57
57
  roborock/devices/traits/b01/q7/map.py,sha256=Zrvj8LNctIFksCBoiZVQ1x4hgG3wwp1jqPY-If__JXw,1489
58
58
  roborock/devices/traits/b01/q7/map_content.py,sha256=rI21-kMmIgf1TY98HXrWG_4rEEs9qzdYBm7RTU47yN4,3519
@@ -99,8 +99,8 @@ roborock/protocols/a01_protocol.py,sha256=JCIhUuVNamcENu0gtZR2x8rBz6dpAZLcbA-NQg
99
99
  roborock/protocols/b01_q10_protocol.py,sha256=SimfXpQotkEkb58ThZq7xa7fCxPxF-hrpAJcRKI-yZE,3407
100
100
  roborock/protocols/b01_q7_protocol.py,sha256=o8repRrxhxknzspsg1K27ds643rs87ilWXbj8RJtOCs,4619
101
101
  roborock/protocols/v1_protocol.py,sha256=uA-EMXd1AUBAXjkjAm0VxZlPLre0v2X9Kei5UqyPzaY,11141
102
- python_roborock-5.18.0.dist-info/METADATA,sha256=r385N5Q4iv3-7EaWk8ygawEv64EpUPrRspVMWa64iGg,5281
103
- python_roborock-5.18.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
104
- python_roborock-5.18.0.dist-info/entry_points.txt,sha256=EvC1nMqi9ZXKgZnqlNXA33v_3nzgPNjnM0mzWlrehnY,47
105
- python_roborock-5.18.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
106
- python_roborock-5.18.0.dist-info/RECORD,,
102
+ python_roborock-5.19.0.dist-info/METADATA,sha256=2kLYpRcLVFVqgKCvFOMdjdxlmzf-ZRwJlnlSb2thlyE,5281
103
+ python_roborock-5.19.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
104
+ python_roborock-5.19.0.dist-info/entry_points.txt,sha256=EvC1nMqi9ZXKgZnqlNXA33v_3nzgPNjnM0mzWlrehnY,47
105
+ python_roborock-5.19.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
106
+ python_roborock-5.19.0.dist-info/RECORD,,
@@ -116,6 +116,29 @@ class Q7PropertiesApi(Trait):
116
116
  """Enable or disable the child lock."""
117
117
  await self.set_prop(RoborockB01Props.CHILD_LOCK, int(enabled))
118
118
 
119
+ async def set_do_not_disturb(self, enabled: bool, begin_time: int, end_time: int) -> None:
120
+ """Configure do-not-disturb.
121
+
122
+ The device expects all three values together via ``service.set_quiet_time``
123
+ (individual ``prop.set`` calls are ignored). ``begin_time``/``end_time`` are
124
+ minutes since midnight and must be in the range 0-1439 (inclusive).
125
+
126
+ Ranges that cross midnight are supported by passing a ``begin_time`` that is
127
+ greater than ``end_time`` (e.g. 22:00-07:00 is ``begin_time=1320``,
128
+ ``end_time=420``).
129
+ """
130
+ for name, value in (("begin_time", begin_time), ("end_time", end_time)):
131
+ if not 0 <= value <= 1439:
132
+ raise ValueError(f"{name} must be between 0 and 1439 minutes since midnight, got {value}")
133
+ await self.send(
134
+ RoborockB01Q7Methods.SET_QUIET_TIME,
135
+ {
136
+ "is_open": int(enabled),
137
+ "quiet_begin_time": begin_time,
138
+ "quiet_end_time": end_time,
139
+ },
140
+ )
141
+
119
142
  async def start_clean(self) -> None:
120
143
  """Start cleaning."""
121
144
  await self.send(