Skip to content

Refactor WaterModes to use display_name instead of value aliases - #990

Open
swastiktawate wants to merge 1 commit into
Python-roborock:mainfrom
swastiktawate:fix-watermodes-display-name
Open

swastiktawate wants to merge 1 commit into
Python-roborock:mainfrom
swastiktawate:fix-watermodes-display-name

Conversation

@swastiktawate

Copy link
Copy Markdown

The water-slide WaterModes members reused the value strings of older modes, so Python silently merged them and their special codes (225, 235, 245, 250) were lost. Each member now gets its own unique value, with the user-facing name moved to display_name. This also removes the three workarounds that only existed because of the bug, and adds a test that stops anyone from reintroducing it.

This branch has not been deployed

No deployments
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