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 a08876d
Showing 1 changed file with 1 addition and 0 deletions.
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 a08876d

Please sign in to comment.