Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors the B01 device support to separate Q7 and Q10 logic into distinct submodules, preparing for different messaging structures for these model variants.
Key Changes:
- Renamed
RoborockB01MethodstoRoborockB01Q7Methodsto reflect Q7-specific implementation - Moved B01 properties API from
b01/__init__.pytob01/q7/__init__.pyasQ7PropertiesApi - Added device model detection logic in device_manager.py to route Q7 devices (model contains 'sc') to the appropriate trait implementation
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| roborock/roborock_typing.py | Renamed enum class from RoborockB01Methods to RoborockB01Q7Methods for Q7-specific methods |
| roborock/protocols/b01_protocol.py | Updated import to use renamed RoborockB01Q7Methods |
| roborock/devices/traits/traits_mixin.py | Renamed property from b01_properties to b01_q7_properties |
| roborock/devices/traits/b01/q7/init.py | Created new Q7-specific implementation with Q7PropertiesApi class |
| roborock/devices/traits/b01/q10/init.py | Added placeholder file for future Q10 implementation |
| roborock/devices/traits/b01/init.py | Refactored to import from q7 submodule instead of implementing directly |
| roborock/devices/device_manager.py | Added conditional logic to route B01 devices to appropriate trait implementations based on model suffix |
Comments suppressed due to low confidence (1)
roborock/devices/traits/b01/init.py:5
- The name 'q&PropertiesApi' is exported by all but is not defined.
__all__ = ["q&PropertiesApi", "q7", "q10"]
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
allenporter
previously approved these changes
Dec 6, 2025
Co-authored-by: Allen Porter <allen.porter@gmail.com>
Collaborator
Author
|
Waiting to merge this until after our current cycle Edit: will merge when approved |
allenporter
reviewed
Dec 10, 2025
| @@ -0,0 +1,31 @@ | |||
| """Traits for Q7 B01 devices. | |||
Contributor
There was a problem hiding this comment.
Suggested change
| """Traits for Q7 B01 devices. | |
| """Traits for Q7 B01 devices. | |
allenporter
approved these changes
Dec 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some clean up to make it easier to add selective support to the models as they use a different messaging strucutre