-
-
Notifications
You must be signed in to change notification settings - Fork 36.2k
Allow fetching the Cloud ICE servers #157774
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
|
Hey there @home-assistant/cloud, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Pull request overview
This PR adds functionality to expose Cloud ICE (Interactive Connectivity Establishment) servers through a websocket API endpoint for use by the Music Assistant integration. The implementation stores ICE servers from the cloud service and provides a simple websocket command to retrieve them.
Key Changes
- Adds
ice_serversproperty to the CloudClient to expose stored ICE servers - Implements a new websocket command
cloud/webrtc/ice_serversto fetch ICE servers - Refactors ICE server registration to store servers in the client instance
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
homeassistant/components/cloud/client.py |
Adds _ice_servers instance variable and ice_servers property; refactors register_cloud_ice_server to store ICE servers in the client instance instead of using a closure |
homeassistant/components/cloud/http_api.py |
Registers and implements new websocket command cloud/webrtc/ice_servers to return ICE servers as dictionaries |
tests/components/cloud/test_http_api.py |
Adds test for the new websocket command verifying it returns correctly formatted ICE server data |
|
Why are we adding new_features that late in the beta to the milestone? |
|
It's to unblock a feature for Music Assistant, which does their big quarterly release 2.7 in 2 weeks. It's not technically a feature, it extends the API interface to fetch some data. |
Breaking change
Proposed change
Allow fetching the Cloud ICE servers for Music Assistant integration.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: