Add build flags
This commit is contained in:
@@ -24,6 +24,11 @@ external_components:
|
||||
- nspanel_ha_blueprint_upload_tft
|
||||
refresh: 300s
|
||||
|
||||
esphome:
|
||||
platformio_options:
|
||||
build_flags:
|
||||
- -D NSPANEL_HA_BLUEPRINT_ADDON_UPLOAD_TFT
|
||||
|
||||
# yamllint disable rule:comments-indentation
|
||||
api:
|
||||
services:
|
||||
@@ -375,6 +380,16 @@ script:
|
||||
ESP_LOGI("addon_upload_tft.script.upload_tft_attempt", "Restarting ESPHome");
|
||||
App.safe_reboot();
|
||||
|
||||
- id: !extend watchdog
|
||||
then:
|
||||
- lambda: |-
|
||||
if (!id(is_uploading_tft)) {
|
||||
static const char *const TAG = "addon_upload_tft.script.watchdog";
|
||||
ESP_LOGI(TAG, "Add-on Upload TFT:");
|
||||
ESP_LOGI(TAG, " File model: %s", tft_file_model->state.c_str());
|
||||
ESP_LOGI(TAG, " Valid TFT: %s", YESNO(id(tft_is_valid)));
|
||||
}
|
||||
|
||||
select:
|
||||
- id: tft_file_model
|
||||
name: Update TFT display - Model
|
||||
|
||||
Reference in New Issue
Block a user