From 28d098fae340910cd28710e229b0edae506cab6e Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Tue, 5 May 2026 19:28:23 +0000 Subject: [PATCH] Deduplicate btproxy config --- blinds.yaml | 2 -- btproxy.yaml | 3 --- templates/btproxy.yaml | 4 ++++ 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/blinds.yaml b/blinds.yaml index 902e9d3..0bbe1e2 100644 --- a/blinds.yaml +++ b/blinds.yaml @@ -16,8 +16,6 @@ packages: # Also act as a BT proxy due to convenient location. btproxy: !include templates/btproxy.yaml - # Allow HA to use our proxy. - api: !include templates/api.yaml external_components: # Path is relative to the main YAML file, not this device_base template! diff --git a/btproxy.yaml b/btproxy.yaml index 07a7545..ba501f9 100644 --- a/btproxy.yaml +++ b/btproxy.yaml @@ -14,7 +14,4 @@ mqtt: packages: device_base: !include templates/esp32-poe.yaml - btproxy: !include templates/btproxy.yaml - # Allow HA to use our proxy. - api: !include templates/api.yaml diff --git a/templates/btproxy.yaml b/templates/btproxy.yaml index f221fec..1c894c9 100644 --- a/templates/btproxy.yaml +++ b/templates/btproxy.yaml @@ -5,6 +5,10 @@ esp32: framework: type: esp-idf +packages: + # Allow HomeAssistant to use the proxy. + api: !include api.yaml + globals: - id: ble_scans type: int