pymammotion 0.0.48__py3-none-any.whl → 0.0.50__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.
- pymammotion/mammotion/devices/mammotion.py +1 -6
- pymammotion/utility/constant/device_constant.py +1 -1
- {pymammotion-0.0.48.dist-info → pymammotion-0.0.50.dist-info}/METADATA +1 -2
- {pymammotion-0.0.48.dist-info → pymammotion-0.0.50.dist-info}/RECORD +6 -6
- {pymammotion-0.0.48.dist-info → pymammotion-0.0.50.dist-info}/WHEEL +1 -1
- {pymammotion-0.0.48.dist-info → pymammotion-0.0.50.dist-info}/LICENSE +0 -0
|
@@ -318,7 +318,6 @@ class MammotionBaseBLEDevice(MammotionBaseDevice):
|
|
|
318
318
|
def __init__(self, device: BLEDevice, interface: int = 0, **kwargs: Any) -> None:
|
|
319
319
|
"""Initialize MammotionBaseBLEDevice."""
|
|
320
320
|
super().__init__()
|
|
321
|
-
self._pong_count = None
|
|
322
321
|
self._ble_sync_task = None
|
|
323
322
|
self._prev_notification = None
|
|
324
323
|
self._interface = f"hci{interface}"
|
|
@@ -526,14 +525,10 @@ class MammotionBaseBLEDevice(MammotionBaseDevice):
|
|
|
526
525
|
new_msg = LubaMsg().parse(data)
|
|
527
526
|
if betterproto.serialized_on_wire(new_msg.net):
|
|
528
527
|
if new_msg.net.todev_ble_sync != 0 or has_field(new_msg.net.toapp_wifi_iot_status):
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
if self._pong_count < 3:
|
|
532
|
-
return
|
|
528
|
+
return
|
|
533
529
|
|
|
534
530
|
# may or may not be correct, some work could be done here to correctly match responses
|
|
535
531
|
if self._notify_future and not self._notify_future.done():
|
|
536
|
-
self._pong_count = 0
|
|
537
532
|
self._notify_future.set_result(data)
|
|
538
533
|
|
|
539
534
|
await self._state_manager.notification(new_msg)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pymammotion
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.50
|
|
4
4
|
Summary:
|
|
5
5
|
License: GNU-3.0
|
|
6
6
|
Author: Michael Arthur
|
|
@@ -28,7 +28,6 @@ Requires-Dist: paho-mqtt (>=1.6.1,<2.0.0)
|
|
|
28
28
|
Requires-Dist: protobuf (>=4.23.1)
|
|
29
29
|
Requires-Dist: py-jsonic (>=0.0.2,<0.0.3)
|
|
30
30
|
Requires-Dist: pyjoystick (>=1.2.4,<2.0.0)
|
|
31
|
-
Requires-Dist: pyproj (>=3.6.1,<4.0.0)
|
|
32
31
|
Description-Content-Type: text/markdown
|
|
33
32
|
|
|
34
33
|
# PyMammotion - Python API for Mammotion Mowers [](https://discord.gg/vpZdWhJX8x)
|
|
@@ -55,7 +55,7 @@ pymammotion/mammotion/commands/messages/video.py,sha256=_8lJsU4sLm2CGnc7RDkueA0A
|
|
|
55
55
|
pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
56
56
|
pymammotion/mammotion/control/joystick.py,sha256=EWV20MMzQuhbLlNlXbsyZKSEpeM7x1CQL7saU4Pn0-g,6165
|
|
57
57
|
pymammotion/mammotion/devices/__init__.py,sha256=T72jt0ejtMjo1rPmn_FeMF3pmp0LLeRRpc9WcDKEYYY,126
|
|
58
|
-
pymammotion/mammotion/devices/mammotion.py,sha256=
|
|
58
|
+
pymammotion/mammotion/devices/mammotion.py,sha256=PggTIzyIlR95OlOyHhU3lX3bFe1C5orFvq5IZwD2t-U,29740
|
|
59
59
|
pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
|
|
60
60
|
pymammotion/mqtt/mammotion_mqtt.py,sha256=EBnUwqah-mZNcAn5Hq2sV3NKXueIYWNhYPiaXwaXdHg,9084
|
|
61
61
|
pymammotion/proto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -97,12 +97,12 @@ pymammotion/proto/mctrl_sys_pb2.py,sha256=fvVXdJtDCcmCGHjib53zkRV6WGqlD3bBs-YR_d
|
|
|
97
97
|
pymammotion/proto/mctrl_sys_pb2.pyi,sha256=2aojT3Q9kqP4YT9aOW0lt4RxRXfOdcsztbArHBG6RzQ,38902
|
|
98
98
|
pymammotion/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
99
99
|
pymammotion/utility/constant/__init__.py,sha256=tZz7szqIhrzNjfcLU3ysfINfg5VEBUAisd9AhP4mvT0,38
|
|
100
|
-
pymammotion/utility/constant/device_constant.py,sha256=
|
|
100
|
+
pymammotion/utility/constant/device_constant.py,sha256=a_nEQ2_Sk5auVIR_KQ-pshC6p6XKLz36XzMzFYb5rwo,6780
|
|
101
101
|
pymammotion/utility/datatype_converter.py,sha256=v6zym2Zu0upxQjR-xDqXwi3516zpntSlg7LP8tQF5K8,4216
|
|
102
102
|
pymammotion/utility/device_type.py,sha256=B_Y1WCRPlFMDOqC13H0ltInyPkbPMIxCoZccCC13fmc,8154
|
|
103
103
|
pymammotion/utility/periodic.py,sha256=9wJMfwXPlx6Mbp3Fws7LLTI34ZDKphH1bva_Ggyk32g,3281
|
|
104
104
|
pymammotion/utility/rocker_util.py,sha256=syPL0QN4zMzHiTIkUKS7RXBBptjdbkfNlPddwUD5V3A,7171
|
|
105
|
-
pymammotion-0.0.
|
|
106
|
-
pymammotion-0.0.
|
|
107
|
-
pymammotion-0.0.
|
|
108
|
-
pymammotion-0.0.
|
|
105
|
+
pymammotion-0.0.50.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
106
|
+
pymammotion-0.0.50.dist-info/METADATA,sha256=r2B1jCcA634BsZQqbZyZMLT8OlthmdBXTwLEUttVlz0,3884
|
|
107
|
+
pymammotion-0.0.50.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
|
|
108
|
+
pymammotion-0.0.50.dist-info/RECORD,,
|
|
File without changes
|