pymammotion 0.2.13__tar.gz → 0.2.15__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.
Potentially problematic release.
This version of pymammotion might be problematic. Click here for more details.
- {pymammotion-0.2.13 → pymammotion-0.2.15}/PKG-INFO +1 -1
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/mqtt/event.py +4 -2
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/devices/mammotion.py +6 -1
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_sys.proto +1 -1
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_sys.py +1 -1
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_sys_pb2.pyi +1 -1
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pyproject.toml +3 -3
- {pymammotion-0.2.13 → pymammotion-0.2.15}/LICENSE +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/README.md +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/cloud_gateway.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/cloud_service.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/aep_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/connect_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/dev_by_account_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/login_by_oauth_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/regions_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/session_by_authcode_response.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/tmp_constant.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/ble.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/ble_message.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/const.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/data/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/data/convert.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/data/framectrldata.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/bluetooth/data/notifydata.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/const.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/account.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/device.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/device_config.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/enums.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/excute_boarder_params.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/execute_boarder.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/generate_route_information.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/hash_list.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/location.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/mowing_modes.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/plan.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/rapid_state.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/region_data.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/model/report_info.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/mqtt/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/mqtt/properties.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/mqtt/status.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/data/state_manager.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/event/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/event/event.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/http/_init_.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/http/http.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/abstract_message.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/mammotion_command.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/driver.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/media.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/navigation.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/network.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/ota.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/system.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/video.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/control/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/control/joystick.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/devices/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mqtt/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mqtt/mammotion_future.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mqtt/mammotion_mqtt.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/basestation.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/basestation.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/basestation_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/basestation_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/common.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/common.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/common_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/common_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/dev_net.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/dev_net.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/dev_net_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/dev_net_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_msg.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_msg.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_msg_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_msg_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_mul.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_mul.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_mul_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/luba_mul_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_driver.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_driver.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_driver_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_driver_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_nav.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_nav.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_nav_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_nav_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_ota.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_ota.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_ota_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_ota_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_pept.proto +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_pept.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_pept_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_pept_pb2.pyi +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/proto/mctrl_sys_pb2.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/py.typed +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/constant/__init__.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/constant/device_constant.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/datatype_converter.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/device_type.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/map.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/periodic.py +0 -0
- {pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/utility/rocker_util.py +0 -0
|
@@ -95,9 +95,9 @@ class DeviceWarningEventParams(GeneralParams):
|
|
|
95
95
|
|
|
96
96
|
@dataclass
|
|
97
97
|
class ThingEventMessage(DataClassORJSONMixin):
|
|
98
|
-
method: Literal["thing.events"]
|
|
98
|
+
method: Literal["thing.events", "thing.properties"]
|
|
99
99
|
id: str
|
|
100
|
-
params: Union[DeviceProtobufMsgEventParams, DeviceWarningEventParams]
|
|
100
|
+
params: Union[DeviceProtobufMsgEventParams, DeviceWarningEventParams, str]
|
|
101
101
|
version: Literal["1.0"]
|
|
102
102
|
|
|
103
103
|
@classmethod
|
|
@@ -114,6 +114,8 @@ class ThingEventMessage(DataClassORJSONMixin):
|
|
|
114
114
|
params_obj = DeviceProtobufMsgEventParams(**params_dict)
|
|
115
115
|
elif identifier == "device_warning_event":
|
|
116
116
|
params_obj = DeviceWarningEventParams(**params_dict)
|
|
117
|
+
elif identifier == "device_config_req_event":
|
|
118
|
+
params_obj = payload.get("params", '')
|
|
117
119
|
else:
|
|
118
120
|
raise ValueError(f"Unknown identifier: {identifier}")
|
|
119
121
|
|
|
@@ -1147,7 +1147,10 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
|
|
|
1147
1147
|
_LOGGER.debug("Thing event received")
|
|
1148
1148
|
event = ThingEventMessage.from_dicts(payload)
|
|
1149
1149
|
params = event.params
|
|
1150
|
-
if params
|
|
1150
|
+
if isinstance(params, str):
|
|
1151
|
+
_LOGGER.debug("config event %s", str)
|
|
1152
|
+
return
|
|
1153
|
+
if params.identifier == "device_protobuf_msg_event" and params.thingType == "thing.events":
|
|
1151
1154
|
_LOGGER.debug("Protobuf event")
|
|
1152
1155
|
binary_data = base64.b64decode(params.value.get("content", ""))
|
|
1153
1156
|
self._update_raw_data(cast(bytes, binary_data))
|
|
@@ -1168,6 +1171,8 @@ class MammotionBaseCloudDevice(MammotionBaseDevice):
|
|
|
1168
1171
|
if not fut.fut.cancelled():
|
|
1169
1172
|
fut.resolve(cast(bytes, binary_data))
|
|
1170
1173
|
await self._state_manager.notification(new_msg)
|
|
1174
|
+
if params.thingType == "thing.properties":
|
|
1175
|
+
_LOGGER.debug(event)
|
|
1171
1176
|
|
|
1172
1177
|
async def _handle_mqtt_message(self, topic: str, payload: dict) -> None:
|
|
1173
1178
|
"""Async handler for incoming MQTT messages."""
|
|
@@ -312,7 +312,7 @@ class LoraCfgRsp(betterproto.Message):
|
|
|
312
312
|
result: int = betterproto.int32_field(1)
|
|
313
313
|
op: int = betterproto.int32_field(2)
|
|
314
314
|
cfg: str = betterproto.string_field(3)
|
|
315
|
-
fac_cfg:
|
|
315
|
+
fac_cfg: bytes = betterproto.bytes_field(4)
|
|
316
316
|
|
|
317
317
|
|
|
318
318
|
@dataclass
|
|
@@ -82,7 +82,7 @@ class LoraCfgRsp(_message.Message):
|
|
|
82
82
|
OP_FIELD_NUMBER: _ClassVar[int]
|
|
83
83
|
RESULT_FIELD_NUMBER: _ClassVar[int]
|
|
84
84
|
cfg: str
|
|
85
|
-
fac_cfg:
|
|
85
|
+
fac_cfg: bytes
|
|
86
86
|
op: int
|
|
87
87
|
result: int
|
|
88
88
|
def __init__(self, result: _Optional[int] = ..., op: _Optional[int] = ..., cfg: _Optional[str] = ..., fac_cfg: _Optional[str] = ...) -> None: ...
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pymammotion"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.15"
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "pymammotion"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.15"
|
|
8
8
|
license = "GNU-3.0"
|
|
9
9
|
description = ""
|
|
10
10
|
readme = "README.md"
|
|
@@ -53,7 +53,7 @@ mypy = "^1.10.0"
|
|
|
53
53
|
pre-commit = "^3.7.1"
|
|
54
54
|
|
|
55
55
|
[tool.bumpver]
|
|
56
|
-
current_version = "0.2.
|
|
56
|
+
current_version = "0.2.15"
|
|
57
57
|
version_pattern = "MAJOR.MINOR.PATCH"
|
|
58
58
|
commit_message = "Bump version {old_version} -> {new_version}"
|
|
59
59
|
commit = true
|
|
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.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/dev_by_account_response.py
RENAMED
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/aliyun/dataclass/login_by_oauth_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
|
|
File without changes
|
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/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
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/abstract_message.py
RENAMED
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/mammotion_command.py
RENAMED
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/pymammotion/mammotion/commands/messages/navigation.py
RENAMED
|
File without changes
|
{pymammotion-0.2.13 → pymammotion-0.2.15}/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
|
|
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
|