pymammotion 0.4.25__py3-none-any.whl → 0.4.27__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,7 @@
1
1
  import asyncio
2
2
  import logging
3
3
  import os
4
+ import socket
4
5
  import ssl
5
6
  import time
6
7
  from typing import Any
@@ -123,6 +124,7 @@ class TeaCore:
123
124
  await loop.run_in_executor(None, ssl_context.load_verify_locations, ca_cert)
124
125
  connector = aiohttp.TCPConnector(
125
126
  ssl=ssl_context,
127
+ family=socket.AF_INET,
126
128
  )
127
129
  else:
128
130
  verify = False
@@ -102,7 +102,7 @@ class StateManager:
102
102
 
103
103
  async def get_plan_callback(self, planjob: NavPlanJobSet) -> None:
104
104
  if self.cloud_get_plan_callback:
105
- await self.get_plan_callback(planjob)
105
+ await self.cloud_get_plan_callback(planjob)
106
106
  elif self.ble_get_plan_callback:
107
107
  await self.ble_get_plan_callback(planjob)
108
108
 
@@ -234,7 +234,7 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
234
234
  command_bytes = self._commands.send_todev_ble_sync(3)
235
235
  try:
236
236
  await self._mqtt.send_command(self.iot_id, command_bytes)
237
- except (CheckSessionException, SetupException):
237
+ except (CheckSessionException, SetupException, DeviceOfflineException):
238
238
  if self._ble_sync_task:
239
239
  self._ble_sync_task.cancel()
240
240
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pymammotion
3
- Version: 0.4.25
3
+ Version: 0.4.27
4
4
  Summary:
5
5
  License: GPL-3.0
6
6
  Author: Michael Arthur
@@ -10,7 +10,7 @@ pymammotion/aliyun/model/regions_response.py,sha256=HSnpPcgpjr6VNXBQHw__gn-xWCkQ
10
10
  pymammotion/aliyun/model/session_by_authcode_response.py,sha256=0owdNcGFIP7rsVqLIf9rT-iOtvWmKCt2AW0cUUXwFiQ,427
11
11
  pymammotion/aliyun/model/stream_subscription_response.py,sha256=7d0i8cNMAMX7aQjd2yebMDdqQkugcCzk-SD6oVtf18M,333
12
12
  pymammotion/aliyun/regions.py,sha256=ctlRGrmdE4-xgItl9slCANYOV502qVN5lkAU4lj92sk,2518
13
- pymammotion/aliyun/tea/core.py,sha256=Vnv4zclqxFdJcvCl013pAXz1MiU13WaHA0m7J_-nVX4,10147
13
+ pymammotion/aliyun/tea/core.py,sha256=4SjhRkbPMbw-uI0lQnCN0SBNAHAgVFrpHeaauuu6nZY,10200
14
14
  pymammotion/aliyun/tmp_constant.py,sha256=M4Hq_lrGB3LZdX6R2XohRPFoK1NDnNV-pTJwJcJ9838,6650
15
15
  pymammotion/bluetooth/__init__.py,sha256=LAl8jqZ1fPh-3mLmViNQsP3s814C1vsocYUa6oSaXt0,36
16
16
  pymammotion/bluetooth/ble.py,sha256=XQWJBpSzeIawCrLTsVrq9LI6jmM_ALVTttUkosK2BRM,2480
@@ -46,7 +46,7 @@ pymammotion/data/mqtt/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
46
46
  pymammotion/data/mqtt/event.py,sha256=r14gzZVxmlGVAwFdZQ1CUsMZFHHwRKnbt2VHnjugP28,5123
47
47
  pymammotion/data/mqtt/properties.py,sha256=pX5JRVmmpVO04CSPm5xAGcSWA_OeLd0JnBagLsfiSEc,3755
48
48
  pymammotion/data/mqtt/status.py,sha256=SgdrpE1Uldb01hybO6hYhgU1Sp1eILghC0UhMZMHrdQ,1091
49
- pymammotion/data/state_manager.py,sha256=MiRnTzwHZ9lOZE_K-IjNPrtTu_MX75neUTTIQT2VBv4,9355
49
+ pymammotion/data/state_manager.py,sha256=m0goRLZXJwZ8pDi_Rt8HIyVNE3O4sLSprfjzycauk-s,9361
50
50
  pymammotion/event/__init__.py,sha256=mgATR6vPHACNQ-0zH5fi7NdzeTCDV1CZyaWPmtUusi8,115
51
51
  pymammotion/event/event.py,sha256=bj2RirSIRyBs0QvkcrOtwZWUX_8F3m1sySuHVyKmZLs,2143
52
52
  pymammotion/http/_init_.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -71,7 +71,7 @@ pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_A
71
71
  pymammotion/mammotion/devices/base.py,sha256=FeESaqNcHqQ_4Ew8Hq2BCQQZQeS9M8lOvw8zBJLka2k,12435
72
72
  pymammotion/mammotion/devices/mammotion.py,sha256=ffzwsQqO9zDwMElWYMsxi-J5_rGaOOOHdAm5D3DXprc,13671
73
73
  pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=nIuOW22Une1Zk1tN691jGUv_eqQJA8K2LuC9ohPUHAk,19612
74
- pymammotion/mammotion/devices/mammotion_cloud.py,sha256=GSa9FPG2Ob7eP7L_WqV5Wk9LzL6dKbhFJsBTyLJBguI,13874
74
+ pymammotion/mammotion/devices/mammotion_cloud.py,sha256=X9glsI1oxN_PyK7dQdadnK-CA2FvihEsDQk-luu4tVs,13898
75
75
  pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
76
76
  pymammotion/mqtt/linkkit/__init__.py,sha256=ENgc3ynd2kd9gMQR3-kgmCu6Ed9Y6XCIzU0zFReUlkk,80
77
77
  pymammotion/mqtt/linkkit/h2client.py,sha256=w9Nvi_nY4CLD_fw-pHtYChwQf7e2TiAGeqkY_sF4cf0,19659
@@ -120,7 +120,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
120
120
  pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
121
121
  pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
122
122
  pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
123
- pymammotion-0.4.25.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
124
- pymammotion-0.4.25.dist-info/METADATA,sha256=8-x044y_IVdK-evDfPwVGiFTZhXCxWJMGsWOak2SoqY,3834
125
- pymammotion-0.4.25.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
126
- pymammotion-0.4.25.dist-info/RECORD,,
123
+ pymammotion-0.4.27.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
124
+ pymammotion-0.4.27.dist-info/METADATA,sha256=ZuztHQYW7WstBlZpX4FbfLNDV21OrcYf8g5-15WH9S4,3834
125
+ pymammotion-0.4.27.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
126
+ pymammotion-0.4.27.dist-info/RECORD,,