Skip to content

fix: port the connection fixes from Nailik/blanco_unit - #1

Merged
alexhaller merged 4 commits into
mainfrom
feat/upstream-connection-fixes
Nov 9, 2026
Merged

alexhaller merged 4 commits into
mainfrom
feat/upstream-connection-fixes

Conversation

@alexhaller

Copy link
Copy Markdown
Owner

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

alexhaller and others added 4 commits November 7, 2026 23:45
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>
Ported from Nailik/blanco_unit (a1f4b59, 81c277e).

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>
@alexhaller
alexhaller merged commit d8aeab8 into main Nov 9, 2026
4 checks passed
@alexhaller
alexhaller deleted the feat/upstream-connection-fixes branch November 9, 2026 19:48
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant