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:
This commit is contained in:
@@ -2,32 +2,22 @@
|
|||||||
##### TX Ultimate Easy for ESPHome #####
|
##### TX Ultimate Easy for ESPHome #####
|
||||||
##### Repository: https://github.com/edwardtfn/TX-Ultimate-Easy #####
|
##### 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 #####
|
##### Author: edwardtfn - https://github.com/edwardtfn - https://buymeacoffee.com/edwardfirmo #####
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
##### NOTE: #####
|
##### REMOVAL NOTICE: #####
|
||||||
##### - Make changes ONLY if absolutely necessary and you have the required knowledge. #####
|
##### This package has been removed. Please update your configuration. #####
|
||||||
##### - For normal system use, modifications to this file are NOT required. #####
|
##### Add BLE proxy functionality directly in your YAML configuration instead: #####
|
||||||
|
##### bluetooth_proxy: #####
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
---
|
---
|
||||||
bluetooth_proxy:
|
# Trigger the error at compile time
|
||||||
|
|
||||||
esphome:
|
|
||||||
platformio_options:
|
|
||||||
build_flags:
|
|
||||||
- -D TX_ULTIMATE_EASY_ADDON_BLE_PROXY
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- id: !extend dump_config_list_packages
|
- id: force_compilation_error
|
||||||
then:
|
then:
|
||||||
- script.wait: dump_config
|
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
// Check for requirements
|
#error "The package TX-Ultimate-Easy-ESPHome_addon_ble_proxy.yaml has been removed." \
|
||||||
#if !defined(TX_ULTIMATE_EASY_CORE)
|
"Please remove this package from your configuration and add" \
|
||||||
#error "The package TX-Ultimate-Easy-ESPHome_core.yaml is required."
|
"'bluetooth_proxy:' directly to your YAML instead."
|
||||||
#endif
|
|
||||||
|
|
||||||
// Identify itself
|
|
||||||
ESP_LOGCONFIG(ESPHOME_PROJECT_NAME, " - Add-on - BLE Proxy");
|
|
||||||
...
|
...
|
||||||
|
|||||||
Reference in New Issue
Block a user