pymammotion 0.2.55__py3-none-any.whl → 0.2.57__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 +2 -10
- pymammotion/mammotion/devices/mammotion.py +1 -1
- {pymammotion-0.2.55.dist-info → pymammotion-0.2.57.dist-info}/METADATA +2 -3
- {pymammotion-0.2.55.dist-info → pymammotion-0.2.57.dist-info}/RECORD +6 -6
- {pymammotion-0.2.55.dist-info → pymammotion-0.2.57.dist-info}/LICENSE +0 -0
- {pymammotion-0.2.55.dist-info → pymammotion-0.2.57.dist-info}/WHEEL +0 -0
@@ -47,7 +47,7 @@ MOVE_HEADERS = (
|
|
47
47
|
|
48
48
|
|
49
49
|
class SetupException(Exception):
|
50
|
-
|
50
|
+
"""Raise when mqtt expires token or token is invalid."""
|
51
51
|
|
52
52
|
|
53
53
|
class AuthRefreshException(Exception):
|
@@ -73,15 +73,6 @@ class CloudIOTGateway:
|
|
73
73
|
_device_sn = ""
|
74
74
|
_utdid = ""
|
75
75
|
|
76
|
-
_connect_response: ConnectResponse | None = None
|
77
|
-
_login_by_oauth_response: LoginByOAuthResponse | None = None
|
78
|
-
_aep_response: AepResponse | None = None
|
79
|
-
_session_by_authcode_response: SessionByAuthCodeResponse | None = None
|
80
|
-
_devices_by_account_response: ListingDevByAccountResponse | None = None
|
81
|
-
_region_response = None
|
82
|
-
|
83
|
-
_iot_token_issued_at: int = None
|
84
|
-
|
85
76
|
converter = DatatypeConverter()
|
86
77
|
|
87
78
|
def __init__(
|
@@ -532,6 +523,7 @@ class CloudIOTGateway:
|
|
532
523
|
|
533
524
|
if int(response_body_dict.get("code")) != 200:
|
534
525
|
logger.error(response_body_dict)
|
526
|
+
self.sign_out()
|
535
527
|
raise CheckSessionException("Error check or refresh token: " + response_body_dict.__str__())
|
536
528
|
|
537
529
|
session = SessionByAuthCodeResponse.from_dict(response_body_dict)
|
@@ -221,7 +221,7 @@ class Mammotion:
|
|
221
221
|
elif device.deviceName.startswith(("Luba-", "Yuka-")) and mower_device:
|
222
222
|
if mower_device.cloud() is None:
|
223
223
|
mower_device.add_cloud(cloud_device=device, mqtt=mqtt_client)
|
224
|
-
|
224
|
+
else:
|
225
225
|
mower_device.replace_mqtt(mqtt_client)
|
226
226
|
|
227
227
|
def set_disconnect_strategy(self, disconnect: bool) -> None:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: pymammotion
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.57
|
4
4
|
Summary:
|
5
5
|
License: GNU-3.0
|
6
6
|
Author: Michael Arthur
|
@@ -23,8 +23,7 @@ Requires-Dist: bleak (>=0.21.0)
|
|
23
23
|
Requires-Dist: bleak-retry-connector (>=3.5.0,<4.0.0)
|
24
24
|
Requires-Dist: jsonic (>=1.0.0,<2.0.0)
|
25
25
|
Requires-Dist: mashumaro (>=3.13,<4.0)
|
26
|
-
Requires-Dist:
|
27
|
-
Requires-Dist: numpy (>=1.26.4,<2.0.0)
|
26
|
+
Requires-Dist: numpy (>=1.26.0)
|
28
27
|
Requires-Dist: orjson (>=3.9.15,<4.0.0)
|
29
28
|
Requires-Dist: paho-mqtt (>=1.6.1,<2.0.0)
|
30
29
|
Requires-Dist: protobuf (>=4.23.1)
|
@@ -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=GC125Vjz5Z5h_o9NYoBwJRkTOY6qSWoC6fdBKIPleJ0,25576
|
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,7 +61,7 @@ pymammotion/mammotion/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
61
61
|
pymammotion/mammotion/control/joystick.py,sha256=QfBVxM_gxpWsZAGO90whtgxCI2tIZ3TTad9wHIPsU9s,5640
|
62
62
|
pymammotion/mammotion/devices/__init__.py,sha256=f2qQFPgLGmV85W2hSlMUh5BYuht9o_Ar_JEAAMD4fsE,102
|
63
63
|
pymammotion/mammotion/devices/base.py,sha256=MXAuJ9sGnf9QqBeNxGbOkdtqwVpPocVdxw0uT0DgSks,9800
|
64
|
-
pymammotion/mammotion/devices/mammotion.py,sha256=
|
64
|
+
pymammotion/mammotion/devices/mammotion.py,sha256=ckGN6wjIB3rfXkk__0jUt7Jw6_02ZffhPTldw5fnvU8,12431
|
65
65
|
pymammotion/mammotion/devices/mammotion_bluetooth.py,sha256=nyO7pkKgAoRPs-28ESf6ee-y3G5JTYRO-MCp4wKPMlE,17476
|
66
66
|
pymammotion/mammotion/devices/mammotion_cloud.py,sha256=VuXuYlvi-HRbfRlgIV3KraVtbu2EM3QxP-JWWAYj_E0,11774
|
67
67
|
pymammotion/mqtt/__init__.py,sha256=Ocs5e-HLJvTuDpVXyECEsWIvwsUaxzj7lZ9mSYutNDY,105
|
@@ -118,7 +118,7 @@ pymammotion/utility/map.py,sha256=GYscVMg2cX3IPlNpCBNHDW0S55yS1WGRf1iHnNZ7TfQ,22
|
|
118
118
|
pymammotion/utility/movement.py,sha256=N75oAoAgFydqoaOedYIxGUHmuTCtPzAOtb-d_29tpfI,615
|
119
119
|
pymammotion/utility/periodic.py,sha256=MbeSb9cfhxzYmdT_RiE0dZe3H9IfbQW_zSqhmSX2RUc,3321
|
120
120
|
pymammotion/utility/rocker_util.py,sha256=6tX7sS87qoQC_tsxbx3NLL-HgS08wtzXiZkhDiz7uo0,7179
|
121
|
-
pymammotion-0.2.
|
122
|
-
pymammotion-0.2.
|
123
|
-
pymammotion-0.2.
|
124
|
-
pymammotion-0.2.
|
121
|
+
pymammotion-0.2.57.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
122
|
+
pymammotion-0.2.57.dist-info/METADATA,sha256=HB5NwdWKQOsfDY01_DbWK5wTQE1lM0nUsIND3S98yNE,3874
|
123
|
+
pymammotion-0.2.57.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
124
|
+
pymammotion-0.2.57.dist-info/RECORD,,
|
File without changes
|
File without changes
|