Repository navigation
fix: port the connection fixes from Nailik/blanco_unit - #1
Merged
Merged
Conversation
Ported from Nailik/blanco_unit (PRs Nailik#24, Nailik#25 and Nailik#27, plus 85d0548): - Give every GATT read and write a 10 s limit. BlueZ can keep an operation pending forever; after such a timeout the device is removed from BlueZ (an ESPHome proxy keeps its bond) and connected once more. - Close stale links before connecting and bond while connecting, BlueZ fails service discovery without a bond. - Close the connection when pairing or a request fails, so the next call reconnects, and ignore disconnect callbacks of a previous client. - Discover the device by its advertised service UUID instead of the characteristic UUID, which it never advertises. This fixes the random MAC scan and the retry callback, which could not match before. - Name a missing connection slot and an unresponsive device in the config flow, and keep the PIN and passwords out of debug logs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The MIT license requires keeping the notice of Nailik/blanco_unit, which this repository is forked from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They no longer carry the battery device class and show mdi:history. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🎉 This PR is included in version 2.0.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the BLE robustness fixes from the original repository (Nailik/blanco_unit PRs Nailik#24, Nailik#25, Nailik#27 and 85d0548), the filter/CO2 sensor fix (a1f4b59, 81c277e), and restores the original author's copyright notice in LICENSE.
Not merged before a live test on the device: the connection now bonds (
pair=True), which this fork removed in 010f101.🤖 Generated with Claude Code