Skip to content

Bump python-roborock to 3.21.1#159660

Merged
allenporter merged 2 commits into
home-assistant:devfrom
allenporter:roborock-bump
Dec 24, 2025
Merged

Bump python-roborock to 3.21.1#159660
allenporter merged 2 commits into
home-assistant:devfrom
allenporter:roborock-bump

Conversation

@allenporter
Copy link
Copy Markdown
Contributor

@allenporter allenporter commented Dec 23, 2025

Proposed change

Bump python-roborock to 3.21.1
Changes: Python-roborock/python-roborock@v3.20.1...v3.21.1

Includes fixes to allow home assistant to handle unauthorized mqtt sessions.

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:

@allenporter allenporter added this to the 2025.12.5 milestone Dec 23, 2025
Copilot AI review requested due to automatic review settings December 23, 2025 21:37
@home-assistant home-assistant Bot added cla-signed dependency Pull requests marked as a dependency upgrade integration: roborock small-pr PRs with less than 30 lines. by-code-owner Quality Scale: silver labels Dec 23, 2025
@home-assistant
Copy link
Copy Markdown
Contributor

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 bumps the python-roborock dependency from version 3.20.1 to 3.21.0 to incorporate upstream fixes that enable Home Assistant to properly handle unauthorized MQTT sessions.

Key Changes:

  • Updated python-roborock dependency version across all requirement files
  • The integration already has exception handling in place for MqttSessionUnauthorized (imported from the library and handled in __init__.py)

Reviewed changes

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

File Description
requirements_test_all.txt Updated python-roborock test dependency to 3.21.0
requirements_all.txt Updated python-roborock runtime dependency to 3.21.0
homeassistant/components/roborock/manifest.json Updated python-roborock requirement to 3.21.0 in integration manifest

The changes look good! This is a straightforward dependency bump that:

  • ✅ Consistently updates the version across all three required files
  • ✅ Uses a valid semantic version format
  • ✅ The integration code already has proper exception handling for MqttSessionUnauthorized (lines 98-102 in __init__.py)
  • ✅ No additional code changes are needed since the exception handling was already in place

@allenporter allenporter marked this pull request as draft December 24, 2025 01:11
@allenporter allenporter changed the title Bump python-roborock to 3.21.0 Bump python-roborock to 3.21.1 Dec 24, 2025
@allenporter allenporter marked this pull request as ready for review December 24, 2025 01:12
@allenporter allenporter merged commit 5f996e7 into home-assistant:dev Dec 24, 2025
67 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants