@@ -13,11 +13,6 @@ substitutions:
|
||||
# nextion_update_blank_url: "https://github.com/Blackymas/NSPanel_HA_Blueprint/raw/main/custom_configuration/nspanel_blank.tft"
|
||||
##############################################
|
||||
|
||||
#external_components:
|
||||
# - source: github://pr#5683 # Remove this when that pr is merged
|
||||
# components:
|
||||
# - nextion
|
||||
|
||||
button:
|
||||
##### UPDATE TFT DISPLAY #####
|
||||
- name: ${device_name} Update TFT display
|
||||
@@ -94,8 +89,7 @@ script:
|
||||
exit_reparse->execute();
|
||||
delay_seconds_(2);
|
||||
ESP_LOGV(TAG, "Calling upload from Nextion component");
|
||||
disp1->upload_tft();
|
||||
id(restart_nspanel).press();
|
||||
if (disp1->upload_tft()) id(restart_nspanel).press();
|
||||
ESP_LOGD(TAG, "Turn off Nextion");
|
||||
screen_power->turn_off();
|
||||
delay_seconds_(3);
|
||||
|
||||
Reference in New Issue
Block a user