pymammotion 0.2.88__py3-none-any.whl → 0.2.90__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.
- pymammotion/aliyun/cloud_gateway.py +0 -1
- pymammotion/mammotion/devices/base.py +4 -2
- pymammotion/mammotion/devices/mammotion.py +1 -1
- pymammotion/mammotion/devices/mammotion_bluetooth.py +0 -1
- pymammotion/mammotion/devices/mammotion_cloud.py +1 -3
- {pymammotion-0.2.88.dist-info → pymammotion-0.2.90.dist-info}/METADATA +1 -1
- {pymammotion-0.2.88.dist-info → pymammotion-0.2.90.dist-info}/RECORD +9 -9
- {pymammotion-0.2.88.dist-info → pymammotion-0.2.90.dist-info}/LICENSE +0 -0
- {pymammotion-0.2.88.dist-info → pymammotion-0.2.90.dist-info}/WHEEL +0 -0
@@ -55,8 +55,10 @@ class MammotionBaseDevice:
|
|
55
55
|
|
56
56
|
missing_frames = self.mower.map.missing_hash_frame()
|
57
57
|
if len(missing_frames) == 0:
|
58
|
-
|
59
|
-
|
58
|
+
if len(self.mower.map.missing_hashlist) > 0:
|
59
|
+
data_hash = self.mower.map.missing_hashlist.pop()
|
60
|
+
return await self.queue_command("synchronize_hash_data", hash_num=data_hash)
|
61
|
+
return
|
60
62
|
|
61
63
|
if current_frame != missing_frames[0] - 1:
|
62
64
|
current_frame = missing_frames[0] - 1
|
@@ -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,
|
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
|
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=
|
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
|
@@ -61,10 +61,10 @@ pymammotion/mammotion/commands/messages/video.py,sha256=ne1YSuQChaDFfmHgMO5Jc9_O
|
|
61
61
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
62
62
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
63
63
|
pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
|
64
|
-
pymammotion/mammotion/devices/base.py,sha256=
|
65
|
-
pymammotion/mammotion/devices/mammotion.py,sha256=
|
66
|
-
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=
|
67
|
-
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=
|
64
|
+
pymammotion/mammotion/devices/base.py,sha256=o9JgZ9WZGxqFjvuLR7eF0crQ03JOiHumP0sRSr1dRxY,10030
|
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.
|
123
|
-
pymammotion-0.2.
|
124
|
-
pymammotion-0.2.
|
125
|
-
pymammotion-0.2.
|
122
|
+
pymammotion-0.2.90.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
123
|
+
pymammotion-0.2.90.dist-info/METADATA,sha256=t37I4jjWd0cx1DdU3wqfgDD-X2CZevhmkQyeIF4ukiE,3896
|
124
|
+
pymammotion-0.2.90.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
125
|
+
pymammotion-0.2.90.dist-info/RECORD,,
|
File without changes
|
File without changes
|