From 0bd45eb2746f229b67dfbbe342ced95112102131 Mon Sep 17 00:00:00 2001 From: Michael Arthur Date: Tue, 27 Aug 2024 23:11:16 +1200 Subject: [PATCH] Enhance Device Management and Protobuf Definitions (#58) * start work on mowing * update mtrl nav * fix nav commands for none luba 1s * ruff format and so on * add product key to commands for checking device * fix blade on off * Try to implement MQTT response - Need helo on Lock * update protobufs with basestation * adding report info model and map conversions for lla enu * release 0.1.7 * try to keep last data if its missing in report cfg * fix report info * Add missing calls for ble sync as well as hook up callbacks, remove dead code and general clean up, added test call to verify things work * format and run ruff * add cloud as part of base MammotionDevice * rename http class * fix up the client sesion for http * update login to login_info * bump version to 0.2.1 * add start sync and sync maps calls to MammotionDevice * refactor mammotion to handle multiple devices and match to a name * update test examples * fix oops * fix quite a few errors and issues * stability improvements * fix more issues * adding movement commands * fix issue with device identification messing up sync maps * remove operation lock for mqtt * publish 0.2.7 * Add check and refresh token into send_cloud_command (#56) Co-authored-by: Andrea Cagnola Co-authored-by: Michael Arthur * add methods for getting credentials for storing in HA when reloading or restarting without having to re-login * fix queuing of requests for mqtt, sync maps now works bump version to 0.2.9 * don't create cloud or initiate cloud connection if there isn't credentials * bump version to 0.2.11 and catch small issue with futures queue being empty * fix issue with model having optional nickName --------- Co-authored-by: Andrea Cagnola Co-authored-by: d3dfantasy99 <34962618+d3dfantasy99@users.noreply.github.com> Co-authored-by: Andrea Cagnola --- pymammotion/aliyun/dataclass/dev_by_account_response.py | 4 +++- pyproject.toml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pymammotion/aliyun/dataclass/dev_by_account_response.py b/pymammotion/aliyun/dataclass/dev_by_account_response.py index d2e718f..dc73b97 100644 --- a/pymammotion/aliyun/dataclass/dev_by_account_response.py +++ b/pymammotion/aliyun/dataclass/dev_by_account_response.py @@ -9,7 +9,6 @@ class Device(DataClassORJSONMixin): gmtModified: int netType: str - nickName: str categoryKey: str productKey: str nodeType: str @@ -24,10 +23,13 @@ class Device(DataClassORJSONMixin): identityId: str thingType: str status: int + nickName: Optional[str] = None + description: Optional[str] = None productImage: Optional[str] = None categoryImage: Optional[str] = None productModel: Optional[str] = None + class Config(BaseConfig): omit_default = True diff --git a/pyproject.toml b/pyproject.toml index aa7689a..9352849 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [project] name = "pymammotion" -version = "0.2.11" +version = "0.2.12" [tool.poetry] name = "pymammotion" -version = "0.2.11" +version = "0.2.12" license = "GNU-3.0" description = "" readme = "README.md" @@ -53,7 +53,7 @@ mypy = "^1.10.0" pre-commit = "^3.7.1" [tool.bumpver] -current_version = "0.2.11" +current_version = "0.2.12" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "Bump version {old_version} -> {new_version}" commit = true