From 56c613a70fcdfa30168608cae271e8268d3ad3f5 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sun, 5 Jan 2025 00:54:48 +0100 Subject: [PATCH] Remove `sw_speaker_amplifier` when the `media_player` is removed --- .test/esphome_idf53_basic.yaml | 5 +++++ .test/esphome_idf_basic.yaml | 5 +++++ ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml | 3 +++ 3 files changed, 13 insertions(+) diff --git a/.test/esphome_idf53_basic.yaml b/.test/esphome_idf53_basic.yaml index c420d7f..10024d4 100644 --- a/.test/esphome_idf53_basic.yaml +++ b/.test/esphome_idf53_basic.yaml @@ -3,4 +3,9 @@ packages: common_idf53: !include common_idf53.yaml core_package: !include ../ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml standard_package: !include ../ESPHome/TX-Ultimate-Easy-ESPHome_standard.yaml + +media_player: !remove + +switch: + - id: !remove sw_speaker_amplifier ... diff --git a/.test/esphome_idf_basic.yaml b/.test/esphome_idf_basic.yaml index d4d0357..82e7f09 100644 --- a/.test/esphome_idf_basic.yaml +++ b/.test/esphome_idf_basic.yaml @@ -3,4 +3,9 @@ packages: common_idf: !include common_idf.yaml core_package: !include ../ESPHome/TX-Ultimate-Easy-ESPHome_core.yaml standard_package: !include ../ESPHome/TX-Ultimate-Easy-ESPHome_standard.yaml + +media_player: !remove + +switch: + - id: !remove sw_speaker_amplifier ... diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml index c97a93e..2161a7f 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml @@ -63,4 +63,7 @@ script: // Identify itself ESP_LOGCONFIG(ESPHOME_PROJECT_NAME, " - Add-on - BLE Proxy"); + +switch: + - id: !remove sw_speaker_amplifier ...