Skip to content

feat(api)!: rename YXWaterLevel enum values to mirror v1 values#796

Merged
Lash-L merged 1 commit intoPython-roborock:mainfrom
allenporter:water-level-rename
Mar 22, 2026
Merged

feat(api)!: rename YXWaterLevel enum values to mirror v1 values#796
Lash-L merged 1 commit intoPython-roborock:mainfrom
allenporter:water-level-rename

Conversation

@allenporter
Copy link
Contributor

This is a small change to make the enum values slightly more consistent to make it easier to interpret q10 and v1 devices with similar state values where possible.

Copilot AI review requested due to automatic review settings March 22, 2026 16:13
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 updates the Q10 (B01 protocol) water level enum naming to better align with the v1 naming scheme, improving consistency when interpreting similar state values across device generations.

Changes:

  • Renamed YXWaterLevel enum members from CLOSEOFF and MIDDLEMEDIUM (while keeping the same numeric codes).
  • Updated the Q10 protocol encoding test to reference YXWaterLevel.MEDIUM instead of YXWaterLevel.MIDDLE.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
roborock/data/b01_q10/b01_q10_code_mappings.py Renames YXWaterLevel enum members to match v1 naming while preserving codes.
tests/protocols/test_b01_q10_protocol.py Updates the test to use the renamed enum member.

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

…DDLE` to `MEDIUM`, updating a corresponding test
@allenporter allenporter requested a review from Lash-L March 22, 2026 16:39
@Lash-L Lash-L merged commit c630022 into Python-roborock:main Mar 22, 2026
7 checks passed
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.

4 participants