Skip to content

Bump python-roborock to 3.3.3#155170

Merged
thecode merged 2 commits intohome-assistant:devfrom
allenporter:roborock-bump
Oct 26, 2025
Merged

Bump python-roborock to 3.3.3#155170
thecode merged 2 commits intohome-assistant:devfrom
allenporter:roborock-bump

Conversation

@allenporter
Copy link
Copy Markdown
Contributor

@allenporter allenporter commented Oct 25, 2025

Proposed change

This library has breaking API changes, though not user facing breakages, that required these changes:

  • Importing containers and data
  • Changes to some dataclass computed values

This is also required for #154837 which will switch to another API within the same library.

Changes: Python-roborock/python-roborock@v2.50.2...v3.3.3

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Additional information

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.

To help with the load of incoming pull requests:

This is a breaking change that required these changes:
- Importing containers and data
- Changes to some dataclass computed values

This is also required for home-assistant#154837 which will switch to another API within the same library.
Copilot AI review requested due to automatic review settings October 25, 2025 21:00
@home-assistant
Copy link
Copy Markdown

Hey there @Lash-L, mind taking a look at this pull request as it has been labeled with an integration (roborock) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of roborock can trigger bot actions by commenting:

  • @home-assistant close Closes the pull request.
  • @home-assistant rename Awesome new title Renames the pull request.
  • @home-assistant reopen Reopen the pull request.
  • @home-assistant unassign roborock Removes the current integration label and assignees on the pull request, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.

Copy link
Copy Markdown
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 upgrades the python-roborock library from version 2.50.2 to 3.3.3, which includes breaking API changes in the library structure. The upgrade involves updating import paths from roborock.containers and roborock.code_mappings to the consolidated roborock.data module, and adapting to changes in dataclass computed properties.

Key changes:

  • Import path updates across all roborock integration files to use roborock.data instead of the deprecated modules
  • Updated test code to use enum values instead of string properties for state representation
  • Removed computed/derived fields from diagnostic snapshots that are no longer provided by the library

Reviewed Changes

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

Show a summary per file
File Description
homeassistant/components/roborock/*.py (8 files) Updated imports from roborock.containers and roborock.code_mappings to roborock.data
homeassistant/components/roborock/manifest.json Bumped python-roborock requirement from 2.50.2 to 3.3.3
requirements_all.txt Updated python-roborock version to 3.3.3
requirements_test_all.txt Updated python-roborock version to 3.3.3
tests/components/roborock/test_image.py Changed test to use RoborockStateCode.docking enum instead of string property state_name
tests/components/roborock/mock_data.py Updated import from roborock.containers to roborock.data
tests/components/roborock/conftest.py Updated import from roborock.code_mappings to roborock.data
tests/components/roborock/snapshots/test_diagnostics.ambr Removed computed/derived fields that are no longer present in the library's dataclasses

Copy link
Copy Markdown
Member

@thecode thecode left a comment

Choose a reason for hiding this comment

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

Changes looks OK, but there is no changelog/diff for the updated dependency

@home-assistant home-assistant Bot marked this pull request as draft October 25, 2025 23:30
@home-assistant
Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@Lash-L
Copy link
Copy Markdown
Contributor

Lash-L commented Oct 26, 2025

can you mark as fixing #154571?

@allenporter allenporter marked this pull request as ready for review October 26, 2025 04:00
@allenporter allenporter requested a review from a team as a code owner October 26, 2025 04:00
@home-assistant home-assistant Bot requested a review from thecode October 26, 2025 04:00
@allenporter
Copy link
Copy Markdown
Contributor Author

Changes looks OK, but there is no changelog/diff for the updated dependency

Fixed, now marking ready for review.

@thecode thecode merged commit 477073d into home-assistant:dev Oct 26, 2025
67 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Roborock code verification isn't working

4 participants