pymammotion 0.2.55__tar.gz → 0.2.57__tar.gz
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-0.2.55 → pymammotion-0.2.57}/PKG-INFO +2 -3
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/cloud_gateway.py +2 -10
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/mammotion.py +1 -1
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pyproject.toml +4 -5
- {pymammotion-0.2.55 → pymammotion-0.2.57}/LICENSE +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/README.md +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/cloud_service.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/aep_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/connect_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/dev_by_account_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/login_by_oauth_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/regions_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/session_by_authcode_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/stream_subscription_response.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/tmp_constant.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/ble.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/ble_message.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/const.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/data/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/data/convert.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/data/framectrldata.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/bluetooth/data/notifydata.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/const.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/account.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/device.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/device_config.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/enums.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/excute_boarder_params.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/execute_boarder.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/generate_route_information.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/hash_list.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/location.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/mowing_modes.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/plan.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/rapid_state.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/region_data.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/report_info.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/mqtt/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/mqtt/event.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/mqtt/properties.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/mqtt/status.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/state_manager.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/event/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/event/event.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/http/_init_.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/http/http.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/http/model/http.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/abstract_message.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/mammotion_command.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/driver.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/media.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/navigation.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/network.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/ota.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/system.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/video.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/control/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/control/joystick.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/base.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/mammotion_bluetooth.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/mammotion_cloud.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mqtt/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mqtt/mammotion_future.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mqtt/mammotion_mqtt.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/basestation.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/basestation.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/basestation_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/basestation_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/common.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/common.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/common_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/common_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/dev_net.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/dev_net.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/dev_net_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/dev_net_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_msg.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_msg.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_msg_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_msg_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_mul.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_mul.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_mul_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/luba_mul_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_driver.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_driver.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_driver_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_driver_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_nav.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_nav.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_nav_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_nav_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_ota.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_ota.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_ota_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_ota_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_pept.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_pept.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_pept_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_pept_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_sys.proto +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_sys.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_sys_pb2.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/proto/mctrl_sys_pb2.pyi +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/py.typed +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/constant/__init__.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/constant/device_constant.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/conversions.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/datatype_converter.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/device_type.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/map.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/movement.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/periodic.py +0 -0
- {pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/utility/rocker_util.py +0 -0
@@ -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)
|
@@ -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,10 +1,10 @@
|
|
1
1
|
[project]
|
2
2
|
name = "pymammotion"
|
3
|
-
version = "0.2.
|
3
|
+
version = "0.2.57"
|
4
4
|
|
5
5
|
[tool.poetry]
|
6
6
|
name = "pymammotion"
|
7
|
-
version = "0.2.
|
7
|
+
version = "0.2.57"
|
8
8
|
license = "GNU-3.0"
|
9
9
|
description = ""
|
10
10
|
readme = "README.md"
|
@@ -33,8 +33,7 @@ jsonic = "^1.0.0"
|
|
33
33
|
mashumaro = "^3.13"
|
34
34
|
orjson = "^3.9.15"
|
35
35
|
betterproto = "^1.2.5"
|
36
|
-
|
37
|
-
numpy = "^1.26.4"
|
36
|
+
numpy = ">=1.26.0"
|
38
37
|
async-timeout = "^4.0.3"
|
39
38
|
|
40
39
|
[tool.poetry.group.extras]
|
@@ -61,7 +60,7 @@ mypy = "^1.11.2"
|
|
61
60
|
autotyping = "^24.3.0"
|
62
61
|
|
63
62
|
[tool.bumpver]
|
64
|
-
current_version = "0.2.
|
63
|
+
current_version = "0.2.57"
|
65
64
|
version_pattern = "MAJOR.MINOR.PATCH"
|
66
65
|
commit_message = "Bump version {old_version} -> {new_version}"
|
67
66
|
commit = true
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/dev_by_account_response.py
RENAMED
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/login_by_oauth_response.py
RENAMED
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/session_by_authcode_response.py
RENAMED
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/aliyun/model/stream_subscription_response.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/data/model/generate_route_information.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/abstract_message.py
RENAMED
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/mammotion_command.py
RENAMED
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/navigation.py
RENAMED
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/commands/messages/network.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pymammotion-0.2.55 → pymammotion-0.2.57}/pymammotion/mammotion/devices/mammotion_bluetooth.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|