pymammotion 0.4.13__py3-none-any.whl → 0.4.14__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/mammotion/devices/mammotion_cloud.py +5 -2
- {pymammotion-0.4.13.dist-info → pymammotion-0.4.14.dist-info}/METADATA +1 -1
- {pymammotion-0.4.13.dist-info → pymammotion-0.4.14.dist-info}/RECORD +5 -5
- {pymammotion-0.4.13.dist-info → pymammotion-0.4.14.dist-info}/LICENSE +0 -0
- {pymammotion-0.4.13.dist-info → pymammotion-0.4.14.dist-info}/WHEEL +0 -0
@@ -11,7 +11,7 @@ import betterproto
|
|
11
11
|
from Tea.exceptions import UnretryableException
|
12
12
|
|
13
13
|
from pymammotion import CloudIOTGateway, MammotionMQTT
|
14
|
-
from pymammotion.aliyun.cloud_gateway import DeviceOfflineException
|
14
|
+
from pymammotion.aliyun.cloud_gateway import CheckSessionException, DeviceOfflineException, SetupException
|
15
15
|
from pymammotion.aliyun.model.dev_by_account_response import Device
|
16
16
|
from pymammotion.data.mqtt.event import ThingEventMessage
|
17
17
|
from pymammotion.data.mqtt.properties import ThingPropertiesMessage
|
@@ -239,7 +239,10 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
|
|
239
239
|
async def _ble_sync(self) -> None:
|
240
240
|
command_bytes = self._commands.send_todev_ble_sync(3)
|
241
241
|
loop = asyncio.get_running_loop()
|
242
|
-
|
242
|
+
try:
|
243
|
+
await loop.run_in_executor(None, self._mqtt.send_command, self.iot_id, command_bytes)
|
244
|
+
except (CheckSessionException, SetupException):
|
245
|
+
self._ble_sync_task.cancel()
|
243
246
|
|
244
247
|
async def run_periodic_sync_task(self) -> None:
|
245
248
|
"""Send ble sync to robot."""
|
@@ -68,7 +68,7 @@ pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_A
|
|
68
68
|
pymammotion/mammotion/devices/base.py,sha256=urFR2c_kZGoUJ6e0KPY7I5OU-sfrINxuLAIyML_jGAY,10482
|
69
69
|
pymammotion/mammotion/devices/mammotion.py,sha256=Zz2tUIdGA-jFSHLM3aO8tBMvVl7sBIBiqC9Kg7f-lm8,13190
|
70
70
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=0c-HXawLQVHz28s0HKaSCNq4wmLWJZZ3ATDVnCXdSrc,19579
|
71
|
-
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=
|
71
|
+
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=xCoO57Az6Rkq2e4uAohL4DoNnDHTYpBb9YX5tj0GVp8,14526
|
72
72
|
pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
|
73
73
|
pymammotion/mqtt/linkkit/__init__.py,sha256=ENgc3ynd2kd9gMQR3-kgmCu6Ed9Y6XCIzU0zFReUlkk,80
|
74
74
|
pymammotion/mqtt/linkkit/h2client.py,sha256=w9Nvi_nY4CLD_fw-pHtYChwQf7e2TiAGeqkY_sF4cf0,19659
|
@@ -117,7 +117,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
117
117
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
118
118
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
119
119
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
120
|
-
pymammotion-0.4.
|
121
|
-
pymammotion-0.4.
|
122
|
-
pymammotion-0.4.
|
123
|
-
pymammotion-0.4.
|
120
|
+
pymammotion-0.4.14.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
121
|
+
pymammotion-0.4.14.dist-info/METADATA,sha256=NRlymDDBNkVkm09-tl8lTVuJ46QRYtJe7SIB8URO6qg,3834
|
122
|
+
pymammotion-0.4.14.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
123
|
+
pymammotion-0.4.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|