pymammotion 0.5.26__py3-none-any.whl → 0.5.28__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- pymammotion/aliyun/cloud_gateway.py +3 -1
- pymammotion/data/state_manager.py +4 -0
- {pymammotion-0.5.26.dist-info → pymammotion-0.5.28.dist-info}/METADATA +1 -1
- {pymammotion-0.5.26.dist-info → pymammotion-0.5.28.dist-info}/RECORD +6 -6
- {pymammotion-0.5.26.dist-info → pymammotion-0.5.28.dist-info}/LICENSE +0 -0
- {pymammotion-0.5.26.dist-info → pymammotion-0.5.28.dist-info}/WHEEL +0 -0
|
@@ -774,7 +774,9 @@ class CloudIOTGateway:
|
|
|
774
774
|
logger.debug("too many requests.")
|
|
775
775
|
if self.message_delay > 8:
|
|
776
776
|
raise TooManyRequestsException(response.status_message, iot_id)
|
|
777
|
-
asyncio.get_event_loop().call_later(
|
|
777
|
+
asyncio.get_event_loop().call_later(
|
|
778
|
+
self.message_delay, lambda: asyncio.ensure_future(self.send_cloud_command(iot_id, command))
|
|
779
|
+
)
|
|
778
780
|
self.message_delay = self.message_delay * 2
|
|
779
781
|
return message_id
|
|
780
782
|
|
|
@@ -19,6 +19,7 @@ from pymammotion.event.event import DataEvent
|
|
|
19
19
|
from pymammotion.proto import (
|
|
20
20
|
AppGetAllAreaHashName,
|
|
21
21
|
AppGetCutterWorkMode,
|
|
22
|
+
AppSetCutterWorkMode,
|
|
22
23
|
DeviceFwInfo,
|
|
23
24
|
DeviceProductTypeInfoT,
|
|
24
25
|
DrvDevInfoResp,
|
|
@@ -261,6 +262,9 @@ class StateManager:
|
|
|
261
262
|
cutter_work_mode: AppGetCutterWorkMode = driver_msg[1]
|
|
262
263
|
self._device.mower_state.cutter_mode = cutter_work_mode.current_cutter_mode
|
|
263
264
|
self._device.mower_state.cutter_rpm = cutter_work_mode.current_cutter_rpm
|
|
265
|
+
case "cutter_mode_ctrl_by_hand":
|
|
266
|
+
cutter_work_mode: AppSetCutterWorkMode = driver_msg[1]
|
|
267
|
+
self._device.mower_state.cutter_mode = cutter_work_mode.cutter_mode
|
|
264
268
|
|
|
265
269
|
def _update_net_data(self, message) -> None:
|
|
266
270
|
"""Update network data."""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pymammotion/__init__.py,sha256=H-U94bNLp0LPC6hkRopVEUlUsZSR97n7WfKGPjK1GMg,1638
|
|
2
2
|
pymammotion/aliyun/__init__.py,sha256=T1lkX7TRYiL4nqYanG4l4MImV-SlavSbuooC-W-uUGw,29
|
|
3
3
|
pymammotion/aliyun/client.py,sha256=z-dCR6cD5-8MuxjFaXC5U8IsiKcsGQ4EzzexG7X78B8,9664
|
|
4
|
-
pymammotion/aliyun/cloud_gateway.py,sha256=
|
|
4
|
+
pymammotion/aliyun/cloud_gateway.py,sha256=_4emfnKNye5CEn4fzfrWSTAlfYZupZrIBFBPx-OCkHE,32038
|
|
5
5
|
pymammotion/aliyun/model/aep_response.py,sha256=EY4uMTJ4F9rvbcXnAOc5YKi7q__9kIVgfDwfyr65Gk0,421
|
|
6
6
|
pymammotion/aliyun/model/connect_response.py,sha256=Yz-fEbDzgGPTo5Of2oAjmFkSv08T7ze80pQU4k-gKIU,824
|
|
7
7
|
pymammotion/aliyun/model/dev_by_account_response.py,sha256=P9yYy4Z2tLkJSqXA_5XGaCUliSSVa5ILl7VoMtL_tCA,977
|
|
@@ -47,7 +47,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
|
|
|
47
47
|
pymammotion/data/mqtt/event.py,sha256=pj65y93ACcTzUIJkHZC6s_pRFBYaNMSU1wyYRhiGvw4,5571
|
|
48
48
|
pymammotion/data/mqtt/properties.py,sha256=laud9rE-JqBHWKZ44Dov2yMkp3Ld8ghpBwlZ4_3g9uQ,4321
|
|
49
49
|
pymammotion/data/mqtt/status.py,sha256=qwZPevIzScePA_25nbRWMN7IhU-MhhtIl7fcZKAJfIc,1102
|
|
50
|
-
pymammotion/data/state_manager.py,sha256=
|
|
50
|
+
pymammotion/data/state_manager.py,sha256=FU9F_UMGyMBRJvbBSoW-uQaVHWE2XA7qrY1R5011qG8,14217
|
|
51
51
|
pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
|
|
52
52
|
pymammotion/event/event.py,sha256=Z8WYxv_-5khEqKjL1w4c_Et24G1Kdm8QFuIBylD3h3U,3021
|
|
53
53
|
pymammotion/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -130,7 +130,7 @@ pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tp
|
|
|
130
130
|
pymammotion/utility/mur_mur_hash.py,sha256=xEfOZVbqRawJj66eLgtnZ85OauDR47oIPr29OHelzPI,4468
|
|
131
131
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
|
132
132
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
|
133
|
-
pymammotion-0.5.
|
|
134
|
-
pymammotion-0.5.
|
|
135
|
-
pymammotion-0.5.
|
|
136
|
-
pymammotion-0.5.
|
|
133
|
+
pymammotion-0.5.28.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
134
|
+
pymammotion-0.5.28.dist-info/METADATA,sha256=0LkGDYjPd8jt78p1jzAj6zkJoqgF1STchdjs39wMCns,3872
|
|
135
|
+
pymammotion-0.5.28.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
136
|
+
pymammotion-0.5.28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|