From bc3a9bf4e58d9c5f2601c496ea343e337f6213ec Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 8 Apr 2024 12:01:23 -0400 Subject: [PATCH] refactor: add A01 --- commitlint.config.js | 13 ------------- roborock/version_a01_apis/roborock_client_a01.py | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/commitlint.config.js b/commitlint.config.js index ca0adce..25e1189 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,17 +1,4 @@ module.exports = { extends: ["@commitlint/config-conventional"], ignores: [(msg) => /Signed-off-by: dependabot\[bot]/m.test(msg)], - rules: { - 'type-enum': [ - 2, - 'always', - [ - 'chore', - 'docs', - 'feat', - 'fix', - 'major' - ], - ] - } }; diff --git a/roborock/version_a01_apis/roborock_client_a01.py b/roborock/version_a01_apis/roborock_client_a01.py index 0711e07..f812c1e 100644 --- a/roborock/version_a01_apis/roborock_client_a01.py +++ b/roborock/version_a01_apis/roborock_client_a01.py @@ -89,6 +89,7 @@ def on_message_received(self, messages: list[RoborockMessage]) -> None: for data_point_number, data_point in payload_json.get("dps").items(): data_point_protocol = RoborockDyadDataProtocol(int(data_point_number)) if data_point_protocol in protocol_entries: + # Auto convert into data struct we want. converted_response = protocol_entries[data_point_protocol].post_process_fn(data_point) queue = self._waiting_queue.get(int(data_point_number)) if queue and queue.protocol == protocol: