pymammotion 0.2.77__py3-none-any.whl → 0.2.78__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.
@@ -181,7 +181,7 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
181
181
  if self.on_ready_callback:
182
182
  await self.on_ready_callback()
183
183
  except DeviceOfflineException:
184
- await self.stop()
184
+ _LOGGER.debug("Device is offline")
185
185
 
186
186
  async def on_disconnect(self) -> None:
187
187
  if self._ble_sync_task:
@@ -201,7 +201,8 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
201
201
  await self.run_periodic_sync_task()
202
202
  self.stopped = False
203
203
  self._mqtt.on_ready_event.add_subscribers(self.on_ready)
204
- self.mqtt.connect_async()
204
+ if not self.mqtt.is_connected():
205
+ self.mqtt.connect_async()
205
206
 
206
207
  async def _ble_sync(self) -> None:
207
208
  command_bytes = self._commands.send_todev_ble_sync(3)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.77
3
+ Version: 0.2.78
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -64,7 +64,7 @@ pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_A
64
64
  pymammotion/mammotion/devices/base.py,sha256=F_L5aDtY6rgRkk7Q4CwilLenTANW6cBe9zIU3a9HRmA,10020
65
65
  pymammotion/mammotion/devices/mammotion.py,sha256=hSO184o1q4ftfLPx9froFPIXk428wGg8Ayw160W3z7c,12482
66
66
  pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=KjcIta1VcJ8eNJvPFeOtwxV2jl3nrk7PldMmPv_Caqw,18939
67
- pymammotion/mammotion/devices/mammotion_cloud.py,sha256=7xbSZmC1PUG6ZfF5LtiELkQE61lybHoJcBUzz76VvLg,12074
67
+ pymammotion/mammotion/devices/mammotion_cloud.py,sha256=OW5TqJwoTIYxXc-FqrX4QIYHtFnEGnyKCsMXiULND8k,12136
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
@@ -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.77.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.77.dist-info/METADATA,sha256=SQyBg7nqump3ASpuV_4JiKIfN7G1smC9qX3QR8_ouGk,3896
124
- pymammotion-0.2.77.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
- pymammotion-0.2.77.dist-info/RECORD,,
122
+ pymammotion-0.2.78.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ pymammotion-0.2.78.dist-info/METADATA,sha256=bBKv3LNdKqkJZCe7LX5Y62_278l9lidEnjokTslAYqY,3896
124
+ pymammotion-0.2.78.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pymammotion-0.2.78.dist-info/RECORD,,