Skip to content

Conversation

@allenporter
Copy link
Contributor

This is a first pass to update the documentation with these changes:

  • Updating the example code in the overall readme
  • Updating the list of __all__ to either include or exclude apis
  • Updating devices/ pydoc to include the markdown readme

Copilot AI review requested due to automatic review settings November 11, 2025 05:59
Copy link
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 updates documentation and API exports to guide users toward the newer device APIs. The changes improve discoverability of the new device management system and align module exports with the current API design.

Key changes:

  • Updated README example to demonstrate the newer create_device_manager and trait-based APIs
  • Refined __all__ exports across multiple modules to expose the new device APIs while removing references to deprecated version-specific classes
  • Enhanced devices module documentation to include the markdown README

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/protocols/init.py Added new init file with empty exports list for protocols module
roborock/devices/traits/v1/init.py Changed __all__ from class names to module names for submodule exports
roborock/devices/traits/b01/init.py Attempted to remove create_b01_traits from exports (typo: __init__ should be __all__)
roborock/devices/init.py Updated docstring to include markdown README and added traits to exports
roborock/init.py Updated top-level exports to feature new devices API and removed deprecated version-specific APIs
README.md Replaced old API example with new device manager and traits-based example

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

allenporter and others added 3 commits November 10, 2025 22:20
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 allenporter requested a review from Lash-L November 15, 2025 15:28
Lash-L
Lash-L previously approved these changes Nov 15, 2025
status = await local_client.send_command(RoborockCommand.GET_STATUS)
# Or use existing functions that will give you data classes
status = await local_client.get_status()
# Create a device manager that can discover devices.
Copy link
Collaborator

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 show the cache

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added an examples/ directory and put in a more complex example. It shows where we can still simplify the login APIs in the future. In order to make the cache work, I added a file backed cache.

@allenporter allenporter merged commit fa69bf2 into Python-roborock:main Nov 15, 2025
6 of 7 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