⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

feat: add stronger mop washing support#765

Open
Lash-L wants to merge 2 commits intomainfrom
wash_towels
Open

feat: add stronger mop washing support#765
Lash-L wants to merge 2 commits intomainfrom
wash_towels

Conversation

@Lash-L
Copy link
Collaborator

@Lash-L Lash-L commented Feb 4, 2026

This adds the ability to set the wash towel mode (aka mop cleaning mode), start a clean and stop a clean.

The logic for grabbing out valid options mirrors this: #611

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 92.59259% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
roborock/devices/traits/v1/wash_towel_mode.py 88.88% 1 Missing and 1 partial ⚠️
tests/devices/traits/v1/test_wash_towel_mode.py 93.10% 1 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
roborock/data/v1/v1_code_mappings.py 99.79% <ø> (-0.01%) ⬇️
roborock/data/v1/v1_containers.py 91.89% <100.00%> (+0.02%) ⬆️
roborock/devices/traits/v1/__init__.py 91.77% <100.00%> (+0.10%) ⬆️
tests/devices/traits/v1/fixtures.py 98.07% <100.00%> (+0.03%) ⬆️
roborock/devices/traits/v1/wash_towel_mode.py 91.66% <88.88%> (-8.34%) ⬇️
tests/devices/traits/v1/test_wash_towel_mode.py 95.74% <93.10%> (-4.26%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds stronger support for mop washing functionality by introducing the ability to set wash towel mode, start a mop wash, and stop a mop wash. The changes migrate from the deprecated RoborockDockWashTowelModeCode enum to the new WashTowelModes enum and implement dynamic mode determination based on device features, mirroring the approach from PR #611.

Changes:

  • Added methods to set wash towel mode, start wash, and stop wash in the WashTowelModeTrait
  • Migrated from RoborockDockWashTowelModeCode to WashTowelModes enum with dynamic mode support
  • Introduced wash_towel_mode_options property that returns valid modes based on device capabilities

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
roborock/devices/traits/v1/wash_towel_mode.py Added __init__, wash_towel_mode_options property, and methods for set_wash_towel_mode, start_wash, and stop_wash
roborock/devices/traits/v1/__init__.py Moved device_features initialization before other traits and added special initialization for WashTowelModeTrait
roborock/data/v1/v1_containers.py Updated WashTowelMode dataclass to use WashTowelModes instead of RoborockDockWashTowelModeCode
roborock/data/v1/v1_code_mappings.py Removed deprecated RoborockDockWashTowelModeCode enum
tests/devices/traits/v1/test_wash_towel_mode.py Updated tests to use WashTowelModes, added comprehensive tests for new methods and mode options
tests/devices/traits/v1/fixtures.py Reset mock side_effect to None after feature discovery

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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