-
Notifications
You must be signed in to change notification settings - Fork 72
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
Include Bluetooth connection slot allocations in connections free message #1038
Conversation
CodSpeed Performance ReportMerging #1038 will not alter performanceComparing Summary
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1038 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 17 17
Lines 2681 2681
=========================================
Hits 2681 2681 ☔ View full report in Codecov by Sentry. |
Looks like it works as expected
|
WalkthroughThis pull request introduces an enhancement to the Bluetooth connection management in the aioesphomeapi library. A new field Changes
Sequence DiagramsequenceDiagram
participant Client
participant APIClient
participant ESPHomeDevice
Client->>APIClient: subscribe_bluetooth_connections_free()
APIClient->>ESPHomeDevice: Request Bluetooth Connections Status
ESPHomeDevice-->>APIClient: BluetoothConnectionsFreeResponse
APIClient->>Client: Callback with free, limit, and allocated connections
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (4)aioesphomeapi/api.proto (1)Pattern aioesphomeapi/client_callbacks.py (1)Pattern aioesphomeapi/client.py (1)Pattern tests/test_client.py (1)Pattern 🪛 GitHub Actions: CItests/test_client.py[warning] Unraisable Exception in AsyncEngine._async_setup during test_request_while_handshaking 🔇 Additional comments (4)
✨ Finishing Touches
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Breaking change
The signature for the
on_bluetooth_connections_free_update
callback forsubscribe_bluetooth_connections_free
has changed fromCallable[[int, int], None]
toCallable[[int, int, list[int]], None]
which now includes a list of addresses allocated for connections.ESPHome esphome/esphome#8148
bleak-esphome Bluetooth-Devices/bleak-esphome#74
aioesphomeapi #1038