pymammotion 0.2.65__py3-none-any.whl → 0.2.67__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.
@@ -317,8 +317,13 @@ class MammotionBaseBLEDevice(MammotionBaseDevice):
317
317
  result = self._message.parseNotification(data)
318
318
  if result == 0:
319
319
  data = await self._message.parseBlufiNotifyData(True)
320
- self._update_raw_data(data)
321
- self._message.clearNotification()
320
+ try:
321
+ self._update_raw_data(data)
322
+ except (KeyError, ValueError, IndexError, UnicodeDecodeError):
323
+ _LOGGER.exception("Error parsing message %s", data)
324
+ finally:
325
+ self._message.clearNotification()
326
+
322
327
  _LOGGER.debug("%s: Received notification: %s", self.name, data)
323
328
  else:
324
329
  return
@@ -398,6 +403,8 @@ class MammotionBaseBLEDevice(MammotionBaseDevice):
398
403
  self.rssi,
399
404
  )
400
405
  self._cancel_disconnect_timer()
406
+ self._client = None
407
+
401
408
 
402
409
  def _disconnect_from_timer(self) -> None:
403
410
  """Disconnect from device."""
@@ -268,7 +268,7 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
268
268
  try:
269
269
  self._update_raw_data(binary_data)
270
270
  new_msg = LubaMsg().parse(binary_data)
271
- except (KeyError, ValueError, IndexError):
271
+ except (KeyError, ValueError, IndexError, UnicodeDecodeError):
272
272
  _LOGGER.exception("Error parsing message %s", binary_data)
273
273
 
274
274
  if (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.65
3
+ Version: 0.2.67
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -63,8 +63,8 @@ pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3T
63
63
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
64
64
  pymammotion/mammotion/devices/base.py,sha256=F_L5aDtY6rgRkk7Q4CwilLenTANW6cBe9zIU3a9HRmA,10020
65
65
  pymammotion/mammotion/devices/mammotion.py,sha256=hSO184o1q4ftfLPx9froFPIXk428wGg8Ayw160W3z7c,12482
66
- pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=_epFjX2ePq2lgLGfowLe1CAxYLi-_4Q_jcvy7L5e5ug,18671
67
- pymammotion/mammotion/devices/mammotion_cloud.py,sha256=MIBdakx7rvfrIqiVcq5Ry1qkqRVp1ykvU20vFW4Dg58,12006
66
+ pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=ggufoV_KMNaWspHHvXQCOqxUpmNRQYu5jNQSjxviVSM,18890
67
+ pymammotion/mammotion/devices/mammotion_cloud.py,sha256=NM7BKVNPzQXm7DQs1fl5cQHwd_W9DGWwLzB-DaoLKX8,12026
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.65.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.65.dist-info/METADATA,sha256=kNunPuA7BQqFxGwNQ2C8kD5_h6RJyyAM8DyVjX8FiSo,3874
124
- pymammotion-0.2.65.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
- pymammotion-0.2.65.dist-info/RECORD,,
122
+ pymammotion-0.2.67.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ pymammotion-0.2.67.dist-info/METADATA,sha256=DZQuVb2_ihRfYgQASyewZvppsMlAoFop88WYADKFpME,3874
124
+ pymammotion-0.2.67.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pymammotion-0.2.67.dist-info/RECORD,,