Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions roborock/devices/traits/b01/q7/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ async def start_clean(self) -> None:
},
)

async def clean_segments(self, room_ids: list[int]) -> None:
"""Start segment/room cleaning for the given room ids."""
await self.send(
Comment thread
Lash-L marked this conversation as resolved.
Outdated
command=RoborockB01Q7Methods.SET_ROOM_CLEAN,
params={
"clean_type": CleanTaskTypeMapping.ROOM.code,
"ctrl_value": SCDeviceCleanParam.START.code,
"room_ids": room_ids,
},
)
Copy link

Copilot AI Feb 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new public helper isn’t covered by the existing Q7PropertiesApi unit tests (there are tests for start/pause/stop). Please add a test that calls clean_segments([...]) and asserts the published RPC method/params, similar to test_q7_api_start_clean, to prevent regressions in the command payload.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Openclaw: Added coverage in tests/devices/traits/b01/q7/test_init.py (test_q7_api_clean_segments) asserting RPC method and payload for clean_segments([...]).


async def pause_clean(self) -> None:
"""Pause cleaning."""
await self.send(
Expand Down
Loading