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

@@ -198,10 +198,11 @@ class MammotionDevices:
198
198
  async def create_devices(ble_device: BLEDevice,
199
199
  cloud_credentials: Credentials | None = None,
200
200
  preference: ConnectionPreference = ConnectionPreference.BLUETOOTH):
201
- cloud_client = await Mammotion.login(cloud_credentials.account_id or cloud_credentials.email, cloud_credentials.password)
202
201
  mammotion = Mammotion(ble_device, preference)
203
202
 
204
203
  if cloud_credentials:
204
+ cloud_client = await Mammotion.login(cloud_credentials.account_id or cloud_credentials.email,
205
+ cloud_credentials.password)
205
206
  await mammotion.initiate_cloud_connection(cloud_client)
206
207
 
207
208
  return mammotion
@@ -1147,9 +1148,10 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
1147
1148
 
1148
1149
  if len(self._waiting_queue) > 0:
1149
1150
  fut: MammotionFuture = self._waiting_queue.popleft()
1150
- while fut.fut.cancelled():
1151
+ while fut.fut.cancelled() and len(self._waiting_queue) > 0:
1151
1152
  fut: MammotionFuture = self._waiting_queue.popleft()
1152
- fut.resolve(cast(bytes, binary_data))
1153
+ if not fut.fut.cancelled():
1154
+ fut.resolve(cast(bytes, binary_data))
1153
1155
  await self._state_manager.notification(new_msg)
1154
1156
 
1155
1157
  async def _handle_mqtt_message(self, topic: str, payload: dict) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.9
3
+ Version: 0.2.11
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=IqOPXLVDcq8VQ2mm33qHrauzkS9XAKOVFE0-TOk-q4k,46909
61
+ pymammotion/mammotion/devices/mammotion.py,sha256=oYInls6l_DjGU0VwXersSpqJtXDrH6yObcQb3V_f8oc,47043
62
62
  pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
63
63
  pymammotion/mqtt/mammotion_future.py,sha256=WKnHqeHiS2Ut-SaDBNOxqh1jDLeTiyLTsJ7PNUexrjk,687
64
64
  pymammotion/mqtt/mammotion_mqtt.py,sha256=K9TokiQWYJloWu5Hom00g7cfGhWHDSWqbcU9AqW4C9Q,8071
@@ -111,7 +111,7 @@ pymammotion/utility/device_type.py,sha256=KYawu2glZMVlPmxRbA4kVFujXz3miHp3rJiOWR
111
111
  pymammotion/utility/map.py,sha256=aoi-Luzuph02hKynTofMoq3mnPstanx75MDAVv49CuY,2211
112
112
  pymammotion/utility/periodic.py,sha256=9wJMfwXPlx6Mbp3Fws7LLTI34ZDKphH1bva_Ggyk32g,3281
113
113
  pymammotion/utility/rocker_util.py,sha256=syPL0QN4zMzHiTIkUKS7RXBBptjdbkfNlPddwUD5V3A,7171
114
- pymammotion-0.2.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
115
- pymammotion-0.2.9.dist-info/METADATA,sha256=sUQS-JHi__zyOgzpZzSQDKZpkCJ4yzl4UjNQdGE73M0,3968
116
- pymammotion-0.2.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
117
- pymammotion-0.2.9.dist-info/RECORD,,
114
+ pymammotion-0.2.11.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
115
+ pymammotion-0.2.11.dist-info/METADATA,sha256=23mX4pxztKsCqetgHuL7QpSQJed402756WhSItalTAQ,3969
116
+ pymammotion-0.2.11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
117
+ pymammotion-0.2.11.dist-info/RECORD,,