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