-
Notifications
You must be signed in to change notification settings - Fork 66
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
Update Entities #882
Update Entities #882
Conversation
jesserockz
commented
Jun 10, 2024
•
edited
Loading
edited
- [core] Update Entities esphome#6885
- Add esphome native device update entities home-assistant/core#119339
Warning Review failedThe pull request is closed. WalkthroughThe recent changes to the Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant API
participant Entity
Client->>API: Send UpdateCommandRequest (key, install)
API-->>Entity: Forward UpdateCommandRequest
Entity-->>API: Process update command
API-->>Client: Return UpdateStateResponse (key, in_progress, progress, etc.)
Note over Client, API: Client initiates update command and receives update state response
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 1
Outside diff range and nitpick comments (2)
aioesphomeapi/model.py (1)
903-917
: Add comprehensive documentation for newUpdateInfo
andUpdateState
classes.The new classes
UpdateInfo
andUpdateState
are crucial for the update functionality but lack inline documentation. Adding docstrings would improve maintainability and clarity for other developers.tests/test_client.py (1)
Line range hint
759-759
: Redefinition oftest_valve_command
detected.This function is defined twice which can lead to confusion and unexpected behavior. Consider renaming or removing one of the definitions.
- async def test_valave_command(auth_client: APIClient, cmd: dict[str, Any], req: dict[str, Any]) -> None: + async def test_valve_command_v2(auth_client: APIClient, cmd: dict[str, Any], req: dict[str, Any]) -> None: