-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Add Bluetooth WebSocket API to subscribe to connection allocations #136215
base: dev
Are you sure you want to change the base?
Conversation
habluetooth API seems to be ok now. Need to write some tests and do some functional testing |
|
after thinking about it a bit its pretty easy to get the source address with |
so we are going to need the config entry id since we can't get the unique id via an api right now |
This reverts commit 901da19.
frontend home-assistant/frontend#23899
Proposed change
Add Bluetooth WebSocket API to subscribe to connection allocations
Frontend testing
Optionally a bluetooth adapter source can be specified (mac address of the adapter -- this is always the unique id of the config entry)
API Samples
After calling
bluetooth/subscribe_connection_allocations
Next all the current allocations are sent:
As connections change, a new event is sent.
Note that not all adapters will return the allocated list yet.
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: