pymammotion 0.2.92__py3-none-any.whl → 0.2.94__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.
- pymammotion/data/model/report_info.py +1 -1
- pymammotion/mammotion/commands/messages/system.py +3 -1
- pymammotion/mammotion/devices/mammotion_cloud.py +6 -1
- pymammotion/utility/constant/device_constant.py +3 -3
- {pymammotion-0.2.92.dist-info → pymammotion-0.2.94.dist-info}/METADATA +1 -1
- {pymammotion-0.2.92.dist-info → pymammotion-0.2.94.dist-info}/RECORD +8 -8
- {pymammotion-0.2.92.dist-info → pymammotion-0.2.94.dist-info}/LICENSE +0 -0
- {pymammotion-0.2.92.dist-info → pymammotion-0.2.94.dist-info}/WHEEL +0 -0
@@ -71,7 +71,9 @@ class MessageSystem(AbstractMessage, ABC):
|
|
71
71
|
return self.send_order_msg_sys(mctlsys)
|
72
72
|
|
73
73
|
def get_device_product_model(self):
|
74
|
-
return self.send_order_msg_sys(MctlSys(device_product_type_info=DeviceProductTypeInfoT(
|
74
|
+
return self.send_order_msg_sys(MctlSys(device_product_type_info=DeviceProductTypeInfoT(
|
75
|
+
result=1
|
76
|
+
)))
|
75
77
|
|
76
78
|
def read_and_set_sidelight(self, is_sidelight: bool, operate: int):
|
77
79
|
"""Read state of sidelight as well as set it."""
|
@@ -244,7 +244,12 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
|
|
244
244
|
command_bytes = getattr(self._commands, key)(**kwargs)
|
245
245
|
await self._mqtt.command_queue.put((self.iot_id, key, command_bytes, future))
|
246
246
|
# Wait for the future to be resolved
|
247
|
-
|
247
|
+
try:
|
248
|
+
return await future
|
249
|
+
except asyncio.CancelledError:
|
250
|
+
"""Try again once."""
|
251
|
+
future = asyncio.Future()
|
252
|
+
await self._mqtt.command_queue.put((self.iot_id, key, command_bytes, future))
|
248
253
|
|
249
254
|
def _extract_message_id(self, payload: dict) -> str:
|
250
255
|
"""Extract the message ID from the payload."""
|
@@ -215,10 +215,10 @@ class WorkMode:
|
|
215
215
|
def device_connection(value: int, mnet_type: str) -> str:
|
216
216
|
"""Return string representation of device connection."""
|
217
217
|
if value == 1:
|
218
|
-
|
218
|
+
return "BLE"
|
219
219
|
|
220
|
-
if mnet_type ==
|
221
|
-
|
220
|
+
if mnet_type == "NET_USED_TYPE_WIFI":
|
221
|
+
return "WIFI"
|
222
222
|
|
223
223
|
return "3G/4G"
|
224
224
|
|
@@ -35,7 +35,7 @@ pymammotion/data/model/mowing_modes.py,sha256=5TrHSijUyPtIDWpNtgzx_vFQukRJWRz4gI
|
|
35
35
|
pymammotion/data/model/plan.py,sha256=mcadkSL7fQXy0iJ0q786I3GEQY4i6kmQXfW6Ri69lcQ,2906
|
36
36
|
pymammotion/data/model/rapid_state.py,sha256=mIdhAG_LZXpVcybxqTLgLXkNOmVmDTn04B9PGIDA8Ls,1251
|
37
37
|
pymammotion/data/model/region_data.py,sha256=OTV15vRyn9JORXsQPjWMNF1ZujuNhsOKl25KeqwMObA,3007
|
38
|
-
pymammotion/data/model/report_info.py,sha256=
|
38
|
+
pymammotion/data/model/report_info.py,sha256=SywfbgHAOCDkQh1lj2LOI7NC3x1YFdgC2DA4vFrViEk,3270
|
39
39
|
pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
40
40
|
pymammotion/data/mqtt/event.py,sha256=pEOQcjnv5XKosSPD8UmVAgCAaI8vLuIhGECZcU4xKjk,5055
|
41
41
|
pymammotion/data/mqtt/properties.py,sha256=kvphcjrDuJHuX8Az98-wKeFv_rSmu2Fz9YKLGodGSj0,3759
|
@@ -56,7 +56,7 @@ pymammotion/mammotion/commands/messages/media.py,sha256=l-m4l2Vp1ZOHPHyJTceuLaLv
|
|
56
56
|
pymammotion/mammotion/commands/messages/navigation.py,sha256=Z6RQK-pMh8o7_K_1yTENx3lkNBFQTU_ojunolSre0oM,23241
|
57
57
|
pymammotion/mammotion/commands/messages/network.py,sha256=yJyFHGZgDgek8TMMBHGv261cKt4pLno1KK_04B7Jgn0,7698
|
58
58
|
pymammotion/mammotion/commands/messages/ota.py,sha256=g937HT_-OQXV6A3zUiZ53b45cOX6y-rzs5m-4b0IcTk,1473
|
59
|
-
pymammotion/mammotion/commands/messages/system.py,sha256=
|
59
|
+
pymammotion/mammotion/commands/messages/system.py,sha256=fsWCLqABX7xhLo-GYR24C4rV4KWUJ-MvgKbOC-wNqQA,13275
|
60
60
|
pymammotion/mammotion/commands/messages/video.py,sha256=xili9khz4Op5NwjXfvIkeRYzQlQPIf8o8bnoYx-Ylpw,1319
|
61
61
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
62
62
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
@@ -64,7 +64,7 @@ pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_A
|
|
64
64
|
pymammotion/mammotion/devices/base.py,sha256=o9JgZ9WZGxqFjvuLR7eF0crQ03JOiHumP0sRSr1dRxY,10030
|
65
65
|
pymammotion/mammotion/devices/mammotion.py,sha256=052YM0RiPwLHuKN1DRtpaeECx6SA4feMerDrUkx_CSE,12443
|
66
66
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=BAEc8Jz6K72x7nlSq9Db0O6P7KzgGdPd-7qzUtB7bIg,18942
|
67
|
-
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=
|
67
|
+
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=hXQ-x45jGc8aUGmyEWvHh7YqJ2QZNNfaBwrPaLvwOX4,12841
|
68
68
|
pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
|
69
69
|
pymammotion/mqtt/mammotion_future.py,sha256=_OWqKOlUGl2yT1xOsXFQYpGd-1zQ63OxqXgy7KRQgYc,710
|
70
70
|
pymammotion/mqtt/mammotion_mqtt.py,sha256=LaySave_hf0gU3crUTLqzpdQtxIwK8vu5DM8F8fbU2Y,8748
|
@@ -111,7 +111,7 @@ pymammotion/proto/mctrl_sys_pb2.py,sha256=DYemb514mlC7c27t-k1YqqBif0xxhLmnIWk8rX
|
|
111
111
|
pymammotion/proto/mctrl_sys_pb2.pyi,sha256=Dj_1UM86kZ5MfcVyNC76Z0gKrfl5YFsVWP2b-bKoZvk,38912
|
112
112
|
pymammotion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
113
113
|
pymammotion/utility/constant/__init__.py,sha256=tcY0LDeD-qDDHx2LKt55KOyv9ZI0UfCNM6fknLCmm8s,110
|
114
|
-
pymammotion/utility/constant/device_constant.py,sha256=
|
114
|
+
pymammotion/utility/constant/device_constant.py,sha256=jVlqlhnl86ZZh4D8FBz9zyc0VQRy1wNKFLQ5PrNosOw,7374
|
115
115
|
pymammotion/utility/conversions.py,sha256=v3YICy0zZwwBBzrUZgabI7GRfiDBnkiAX2qdtk3NxOY,89
|
116
116
|
pymammotion/utility/datatype_converter.py,sha256=SPM_HuaaD_XOawlqEnA8qlRRZXGba3WjA8kGOZgeBlQ,4284
|
117
117
|
pymammotion/utility/device_type.py,sha256=xOgfIhOkzgcAtoKtlhlB1q8FpiKe1rVVV5BvN7K7zYc,9433
|
@@ -119,7 +119,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
119
119
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
120
120
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
121
121
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
122
|
-
pymammotion-0.2.
|
123
|
-
pymammotion-0.2.
|
124
|
-
pymammotion-0.2.
|
125
|
-
pymammotion-0.2.
|
122
|
+
pymammotion-0.2.94.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
123
|
+
pymammotion-0.2.94.dist-info/METADATA,sha256=5M4oNUoerp3Vw4NMUf2kpQJskgPVoEGDDK18uCoXMSw,3896
|
124
|
+
pymammotion-0.2.94.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
125
|
+
pymammotion-0.2.94.dist-info/RECORD,,
|
File without changes
|
File without changes
|