-
Notifications
You must be signed in to change notification settings - Fork 56
feat: add some basic support for q10 #692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
allenporter
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be helpful to try to break this down into the smaller parts. Having the overall big picture is helpful but i think we can review and merge faster doing one chunk at a time?
If there are major changes influencing the design here worth calling out let me know.
| def _on_message(self, message: RoborockMessage) -> None: | ||
| """Handle incoming messages from the device.""" | ||
| self._logger.debug("Received message from device: %s", message) | ||
| on_message = getattr(self._trait, "on_message", None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let the trait add their own callback.
c38cf4f to
8dca548
Compare
Add the ability to send commands to roborock CLI. This adds a single trait for sending commands, using a blend of approaches from Python-roborock#692 and Python-roborock#709
* feat: Recognize Q10 devices and add a command trait Add the ability to send commands to roborock CLI. This adds a single trait for sending commands, using a blend of approaches from #692 and #709 * chore: Add end to end tests for Q10 devices Moves the mock API responses to json files to make them easier to collect for new device types and modify in tests. * chore: Remove unused timeout field
Accidentally based on top of the Q7 work. Will finish that and then rebase this