Skip to content

Commit

Permalink
refactor: add A01
Browse files Browse the repository at this point in the history
  • Loading branch information
Lash-L committed Apr 8, 2024
1 parent 6be34e5 commit bc3a9bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
13 changes: 0 additions & 13 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -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'
],
]
}
};
1 change: 1 addition & 0 deletions roborock/version_a01_apis/roborock_client_a01.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc3a9bf

Please sign in to comment.