pymammotion 0.2.92__py3-none-any.whl → 0.2.93__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.
@@ -8,7 +8,7 @@ class ConnectData(DataClassORJSONMixin):
8
8
  connect_type: int = 0
9
9
  ble_rssi: int = 0
10
10
  wifi_rssi: int = 0
11
- used_net: str = ''
11
+ used_net: str = ""
12
12
 
13
13
 
14
14
  @dataclass
@@ -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
- return await future
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
- return "BLE"
218
+ return "BLE"
219
219
 
220
- if mnet_type == 'NET_USED_TYPE_WIFI':
221
- return "WIFI"
220
+ if mnet_type == "NET_USED_TYPE_WIFI":
221
+ return "WIFI"
222
222
 
223
223
  return "3G/4G"
224
224
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.92
3
+ Version: 0.2.93
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -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=M7vk7d22HP9GiSaVePSo32Nh3jkKgjGhfYlvMpBf7-U,3270
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
@@ -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=pVAGKUkCq0LFwiuRhle8MZI5LpoAwXaXvcpO0N-2jwg,12623
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=S9NEzztTX4Jbz0MBEKdjbdQ6kT17jZ_7s99Hq4aDVCk,7372
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.92.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.92.dist-info/METADATA,sha256=s9V_OD5zvzeihbS7Ed6u1y7IHCtXFZQCmA3wn97yUfc,3896
124
- pymammotion-0.2.92.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
- pymammotion-0.2.92.dist-info/RECORD,,
122
+ pymammotion-0.2.93.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ pymammotion-0.2.93.dist-info/METADATA,sha256=7Y6HURQ3N26YLEOmGlZ3fF7_mSGjYmfrzXTCdyc1W70,3896
124
+ pymammotion-0.2.93.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pymammotion-0.2.93.dist-info/RECORD,,