Skip to content

chore: Create module for v1 request encoding #413

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

Merged
merged 3 commits into from
Jul 15, 2025

Conversation

allenporter
Copy link
Contributor

Extract the v1 request encoding into a separate module that will be shared with the new device library.

@allenporter allenporter requested a review from Lash-L July 14, 2025 03:21
Lash-L
Lash-L previously approved these changes Jul 14, 2025
Copy link
Collaborator

@Lash-L Lash-L left a comment

Choose a reason for hiding this comment

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

looks good, primarily just moving things so not much to say

async def _send_command(
self,
method: RoborockCommand | str,
params: list | dict | int | None = None,
):
roborock_message = self.build_roborock_message(method, params)
if method in CLOUD_REQUIRED:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now a breaking change to just hard fail when trying to do this.

@allenporter allenporter requested a review from Lash-L July 14, 2025 14:45
@allenporter allenporter merged commit 7507423 into Python-roborock:main Jul 15, 2025
11 of 12 checks passed
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.

2 participants