pymammotion 0.2.1__py3-none-any.whl → 0.2.2__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.

@@ -206,8 +206,19 @@ class MammotionDevice:
206
206
  return await self._cloud_device.command(key, **kwargs)
207
207
  # TODO work with both with EITHER
208
208
 
209
+ async def start_sync(self, retry: int):
210
+ if self._preference is ConnectionPreference.BLUETOOTH:
211
+ return await self._ble_device.start_sync(retry)
212
+ if self._preference is ConnectionPreference.WIFI:
213
+ return await self._cloud_device.start_sync(retry)
214
+ # TODO work with both with EITHER
209
215
 
210
-
216
+ async def start_map_sync(self):
217
+ if self._preference is ConnectionPreference.BLUETOOTH:
218
+ return await self._ble_device.start_map_sync()
219
+ if self._preference is ConnectionPreference.WIFI:
220
+ return await self._cloud_device.start_map_sync()
221
+ # TODO work with both with EITHER
211
222
 
212
223
  def has_field(message: betterproto.Message) -> bool:
213
224
  """Check if the message has any fields serialized on wire."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -58,7 +58,7 @@ pymammotion/mammotion/commands/messages/video.py,sha256=_8lJsU4sLm2CGnc7RDkueA0A
58
58
  pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
59
  pymammotion/mammotion/control/joystick.py,sha256=EWV20MMzQuhbLlNlXbsyZKSEpeM7x1CQL7saU4Pn0-g,6165
60
60
  pymammotion/mammotion/devices/__init__.py,sha256=T72jt0ejtMjo1rPmn_FeMF3pmp0LLeRRpc9WcDKEYYY,126
61
- pymammotion/mammotion/devices/mammotion.py,sha256=PPM9un7lQVP_tXasI75wvMiGmfwUfh2bOj0WVOuOZNE,38661
61
+ pymammotion/mammotion/devices/mammotion.py,sha256=HbPA1lqabFLLnDWcY77yXZLiGB4IkBqBXk81C-QekzQ,39308
62
62
  pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
63
63
  pymammotion/mqtt/mammotion_mqtt.py,sha256=VU0c8X1DrZSZDLCVAsCaEbLX2zcyrUbEAYaPzOXALNo,7523
64
64
  pymammotion/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -110,7 +110,7 @@ pymammotion/utility/device_type.py,sha256=KYawu2glZMVlPmxRbA4kVFujXz3miHp3rJiOWR
110
110
  pymammotion/utility/map.py,sha256=aoi-Luzuph02hKynTofMoq3mnPstanx75MDAVv49CuY,2211
111
111
  pymammotion/utility/periodic.py,sha256=9wJMfwXPlx6Mbp3Fws7LLTI34ZDKphH1bva_Ggyk32g,3281
112
112
  pymammotion/utility/rocker_util.py,sha256=syPL0QN4zMzHiTIkUKS7RXBBptjdbkfNlPddwUD5V3A,7171
113
- pymammotion-0.2.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
114
- pymammotion-0.2.1.dist-info/METADATA,sha256=rDgggCh3HiCa6nhFMteQI8wUhQ1YjVNgJhe2tbuM7wo,3922
115
- pymammotion-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
116
- pymammotion-0.2.1.dist-info/RECORD,,
113
+ pymammotion-0.2.2.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
114
+ pymammotion-0.2.2.dist-info/METADATA,sha256=_QE8v08z8fhxnO1R_HVdHhTV16XQuQRlDBbJh7Cbi6s,3922
115
+ pymammotion-0.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
116
+ pymammotion-0.2.2.dist-info/RECORD,,