Skip to content

Commit fe0bfaa

Browse files
committed
Merge branch 'fix/pr939-review' into fix/pr934-conflicts
2 parents 7a1349e + 33b5af5 commit fe0bfaa

4 files changed

Lines changed: 43 additions & 20 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
<!-- version list -->
44

5+
## v7.12.0 (2026-09-27)
6+
7+
### Bug Fixes
8+
9+
- Preserve immutable Q10 points in model conformance checks
10+
([#936](https://github.com/Python-roborock/python-roborock/pull/936),
11+
[`14b4bc6`](https://github.com/Python-roborock/python-roborock/commit/14b4bc69e85794a6b448cc0b41379f1ed4cc31b2))
12+
13+
- Request Q10 maps without starting cleaning
14+
([#936](https://github.com/Python-roborock/python-roborock/pull/936),
15+
[`14b4bc6`](https://github.com/Python-roborock/python-roborock/commit/14b4bc69e85794a6b448cc0b41379f1ed4cc31b2))
16+
17+
### Features
18+
19+
- Parse Q10 archived map packets
20+
([#936](https://github.com/Python-roborock/python-roborock/pull/936),
21+
[`14b4bc6`](https://github.com/Python-roborock/python-roborock/commit/14b4bc69e85794a6b448cc0b41379f1ed4cc31b2))
22+
23+
### Refactoring
24+
25+
- Give Q10 clean-record maps ownership of historical paths
26+
([#936](https://github.com/Python-roborock/python-roborock/pull/936),
27+
[`14b4bc6`](https://github.com/Python-roborock/python-roborock/commit/14b4bc69e85794a6b448cc0b41379f1ed4cc31b2))
28+
29+
530
## v7.11.1 (2026-09-26)
631

732
### Bug Fixes

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-roborock"
3-
version = "7.11.1"
3+
version = "7.12.0"
44
description = "A package to control Roborock vacuums."
55
authors = [{ name = "humbertogontijo", email = "humbertogontijo@users.noreply.github.com" }, {name="Lash-L"}, {name="allenporter"}]
66
requires-python = ">=3.11, <4"

‎tests/protocols/test_b01_q10_protocol.py‎

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -349,25 +349,23 @@ def test_decode_message_map_packet() -> None:
349349
assert {room.id: room.name for room in decoded.rooms} == {2: "Living Room", 3: "bedroom"}
350350

351351

352-
@pytest.mark.parametrize(
353-
("marker", "kind"),
354-
[
355-
(b"\x03\x01", Q10MapPacketKind.CLEAN_RECORD_DETAIL),
356-
(b"\x04\x01", Q10MapPacketKind.SAVED_MAP_DETAIL),
357-
],
358-
)
359-
def test_decode_message_archived_map_packet(marker: bytes, kind: Q10MapPacketKind) -> None:
360-
"""The decoder recognizes both archived map-detail markers."""
352+
def test_decode_message_clean_record_detail() -> None:
353+
"""The clean-record marker decodes into a composed map and optional trace."""
354+
fixture = MAP_FIXTURE.read_bytes()
355+
decoded = decode_message(_message(b"\x03\x01" + fixture[2:], RoborockMessageProtocol.MAP_RESPONSE))
356+
357+
assert isinstance(decoded, Q10CleanRecordDetail)
358+
assert decoded.map.kind is Q10MapPacketKind.CLEAN_RECORD_DETAIL
359+
assert decoded.trace is None
360+
361+
362+
def test_decode_message_saved_map_detail() -> None:
363+
"""The saved-map marker decodes into a map packet."""
361364
fixture = MAP_FIXTURE.read_bytes()
362-
decoded = decode_message(_message(marker + fixture[2:], RoborockMessageProtocol.MAP_RESPONSE))
363-
364-
if kind is Q10MapPacketKind.CLEAN_RECORD_DETAIL:
365-
assert isinstance(decoded, Q10CleanRecordDetail)
366-
assert decoded.map.kind is kind
367-
assert decoded.trace is None
368-
else:
369-
assert isinstance(decoded, Q10MapPacket)
370-
assert decoded.kind is kind
365+
decoded = decode_message(_message(b"\x04\x01" + fixture[2:], RoborockMessageProtocol.MAP_RESPONSE))
366+
367+
assert isinstance(decoded, Q10MapPacket)
368+
assert decoded.kind is Q10MapPacketKind.SAVED_MAP_DETAIL
371369

372370

373371
def test_decode_message_trace_packet() -> None:

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)