pymammotion 0.2.88__py3-none-any.whl → 0.2.89__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.
@@ -726,4 +726,3 @@ class CloudIOTGateway:
726
726
  @property
727
727
  def connect_response(self):
728
728
  return self._connect_response
729
-
@@ -73,7 +73,7 @@ class MammotionMixedDeviceManager:
73
73
 
74
74
  def add_ble(self, ble_device: BLEDevice) -> None:
75
75
  if ble_device is not None:
76
- self._ble_device = MammotionBaseBLEDevice(state_manager=self._state_manager, ble_device=ble_device)
76
+ self._ble_device = MammotionBaseBLEDevice(state_manager=self._state_manager, device=ble_device)
77
77
 
78
78
  def add_cloud(self, cloud_device: Device | None = None, mqtt: MammotionCloud | None = None) -> None:
79
79
  if cloud_device is not None:
@@ -14,7 +14,6 @@ from bleak_retry_connector import (
14
14
  )
15
15
 
16
16
  from pymammotion.bluetooth import BleMessage
17
- from pymammotion.data.model.device import MowingDevice
18
17
  from pymammotion.data.state_manager import StateManager
19
18
  from pymammotion.mammotion.commands.mammotion_command import MammotionCommand
20
19
  from pymammotion.mammotion.devices.base import MammotionBaseDevice
@@ -11,7 +11,6 @@ import betterproto
11
11
  from pymammotion import CloudIOTGateway, MammotionMQTT
12
12
  from pymammotion.aliyun.cloud_gateway import DeviceOfflineException
13
13
  from pymammotion.aliyun.model.dev_by_account_response import Device
14
- from pymammotion.data.model.device import MowingDevice
15
14
  from pymammotion.data.mqtt.event import ThingEventMessage
16
15
  from pymammotion.data.mqtt.properties import ThingPropertiesMessage
17
16
  from pymammotion.data.state_manager import StateManager
@@ -174,7 +173,7 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
174
173
  if self._mqtt.is_ready:
175
174
  self.run_periodic_sync_task()
176
175
 
177
- def __del__(self):
176
+ def __del__(self) -> None:
178
177
  self._mqtt.on_ready_event.remove_subscribers(self.on_ready)
179
178
  self._mqtt.on_disconnected_event.remove_subscribers(self.on_disconnect)
180
179
  self._mqtt.on_connected_event.remove_subscribers(self.on_connect)
@@ -182,7 +181,6 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
182
181
  if self._ble_sync_task:
183
182
  self._ble_sync_task.cancel()
184
183
 
185
-
186
184
  async def on_ready(self) -> None:
187
185
  """Callback for when MQTT is subscribed to events."""
188
186
  if self.stopped:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pymammotion
3
- Version: 0.2.88
3
+ Version: 0.2.89
4
4
  Summary:
5
5
  License: GNU-3.0
6
6
  Author: Michael Arthur
@@ -1,6 +1,6 @@
1
1
  pymammotion/__init__.py,sha256=jHCQrpJaG1jAoID9T4RT3g4JsZc0JpJqIcqjnA7cXd0,1605
2
2
  pymammotion/aliyun/__init__.py,sha256=T1lkX7TRYiL4nqYanG4l4MImV-SlavSbuooC-W-uUGw,29
3
- pymammotion/aliyun/cloud_gateway.py,sha256=Pg8EVfIWbIVjiCU7etzAbP_h7M77NuezKiCRNoUXcSc,25658
3
+ pymammotion/aliyun/cloud_gateway.py,sha256=m-cVJ0p3-v1mKM24lTKTj3t0PEseO5ca2FbyK_iT_S8,25657
4
4
  pymammotion/aliyun/cloud_service.py,sha256=px7dUKow5Z7VyebjYzuKkzkm77XbUXYiFiYO_2e-UQ0,2207
5
5
  pymammotion/aliyun/model/aep_response.py,sha256=8f6GIP58ve8gd6AL3HBoXxsy0n2q4ygWvjELGnoOnVc,452
6
6
  pymammotion/aliyun/model/connect_response.py,sha256=Yz-fEbDzgGPTo5Of2oAjmFkSv08T7ze80pQU4k-gKIU,824
@@ -62,9 +62,9 @@ pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
62
62
  pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
63
63
  pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
64
64
  pymammotion/mammotion/devices/base.py,sha256=WRRDJsIftlvJ56C7uDbwx2nvb60MORHMGSBWbwlN9g8,9946
65
- pymammotion/mammotion/devices/mammotion.py,sha256=qYH1Yg_XZ9PrdKoYlksudAe04VjcvBc5jzz4zlxB3xM,12447
66
- pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=BqvYJhuK-fFx-0cuoi0zPFL3Hg2ZwSNsPlE_I2DTXos,18997
67
- pymammotion/mammotion/devices/mammotion_cloud.py,sha256=W50O7m6IRwsVoE5PZS9dWTGtH9Xh37J5Abb4honzNf4,12671
65
+ pymammotion/mammotion/devices/mammotion.py,sha256=052YM0RiPwLHuKN1DRtpaeECx6SA4feMerDrUkx_CSE,12443
66
+ pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=BAEc8Jz6K72x7nlSq9Db0O6P7KzgGdPd-7qzUtB7bIg,18942
67
+ pymammotion/mammotion/devices/mammotion_cloud.py,sha256=pVAGKUkCq0LFwiuRhle8MZI5LpoAwXaXvcpO0N-2jwg,12623
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.88.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
- pymammotion-0.2.88.dist-info/METADATA,sha256=r9dZivAE2dGD73ICzaKfwiTE5YWd6IXDCXqh1wckQC8,3896
124
- pymammotion-0.2.88.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
- pymammotion-0.2.88.dist-info/RECORD,,
122
+ pymammotion-0.2.89.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
123
+ pymammotion-0.2.89.dist-info/METADATA,sha256=lbAzz4Dol5XjF4K1jQP69niqScExd76UjdcpOGH0xZQ,3896
124
+ pymammotion-0.2.89.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
125
+ pymammotion-0.2.89.dist-info/RECORD,,