Skip to content

refactor: move b01 map transport decode into protocols#7

Draft
arduano wants to merge 1 commit intomainfrom
leo/pr785-followup-b01-protocol-split
Draft

refactor: move b01 map transport decode into protocols#7
arduano wants to merge 1 commit intomainfrom
leo/pr785-followup-b01-protocol-split

Conversation

@arduano
Copy link
Copy Markdown
Owner

@arduano arduano commented Mar 31, 2026

Openclaw:

Summary

  • move B01 MAP_RESPONSE transport decoding (base64/AES/key derivation/zlib) out of roborock/map/b01_map_parser.py into roborock/protocols/b01_map_protocol.py
  • keep B01MapParser focused on SCMap protobuf parsing/rendering by calling the protocol helper
  • add protocol-level tests for decode success/failure paths

Validation

  • ruff check roborock/map/b01_map_parser.py roborock/protocols/b01_map_protocol.py tests/map/test_b01_map_parser.py tests/protocols/test_b01_map_protocol.py
  • . .venv/bin/activate && pytest -q tests/map/test_b01_map_parser.py tests/protocols/test_b01_map_protocol.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant