From 1bd51f304d02bff43192244f494371e601433af9 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Tue, 29 Jul 2025 09:00:38 +0200 Subject: [PATCH] Deprecate BLE proxy addon package This kind of solves #9 Replace TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml with compilation error to force migration to direct bluetooth_proxy configuration. BREAKING CHANGE: Configurations including this package will fail to compile. Users must remove the package reference and add bluetooth_proxy directly to their YAML. Before: packages: addon_bluetooth_proxy: !include TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml After: bluetooth_proxy: --- ...Ultimate-Easy-ESPHome_addon_ble_proxy.yaml | 30 +++++++------------ 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml b/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml index 1346efb..f04c587 100644 --- a/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml +++ b/ESPHome/TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml @@ -2,32 +2,22 @@ ##### TX Ultimate Easy for ESPHome ##### ##### Repository: https://github.com/edwardtfn/TX-Ultimate-Easy ##### #################################################################################################### -##### Purpose: ESPHome Core - Add-on - BLE Proxy ##### +##### Purpose: ESPHome Core - Add-on - BLE Proxy (REMOVED) ##### #################################################################################################### ##### Author: edwardtfn - https://github.com/edwardtfn - https://buymeacoffee.com/edwardfirmo ##### #################################################################################################### -##### NOTE: ##### -##### - Make changes ONLY if absolutely necessary and you have the required knowledge. ##### -##### - For normal system use, modifications to this file are NOT required. ##### +##### REMOVAL NOTICE: ##### +##### This package has been removed. Please update your configuration. ##### +##### Add BLE proxy functionality directly in your YAML configuration instead: ##### +##### bluetooth_proxy: ##### #################################################################################################### --- -bluetooth_proxy: - -esphome: - platformio_options: - build_flags: - - -D TX_ULTIMATE_EASY_ADDON_BLE_PROXY - +# Trigger the error at compile time script: - - id: !extend dump_config_list_packages + - id: force_compilation_error then: - - script.wait: dump_config - lambda: |- - // Check for requirements - #if !defined(TX_ULTIMATE_EASY_CORE) - #error "The package TX-Ultimate-Easy-ESPHome_core.yaml is required." - #endif - - // Identify itself - ESP_LOGCONFIG(ESPHOME_PROJECT_NAME, " - Add-on - BLE Proxy"); + #error "The package TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml has been removed." \ + "Please remove this package from your configuration and add" \ + "'bluetooth_proxy:' directly to your YAML instead." ...