Clean-up commented code
This commit is contained in:
@@ -37,59 +37,6 @@ esphome:
|
||||
static const char *const TAG = "on_boot";
|
||||
ESP_LOGD(TAG, "After boot check-up starting");
|
||||
set_baud_rate->execute(stoi(baud_rate->state), true);
|
||||
#- wait_until:
|
||||
# condition:
|
||||
# - api.connected:
|
||||
# timeout: 60s
|
||||
#- wait_until:
|
||||
# condition:
|
||||
# - lambda: !lambda return disp1->is_detected();
|
||||
# timeout: 10s
|
||||
#- lambda: |-
|
||||
# if (!disp1->is_setup()) {
|
||||
# exit_reparse->execute();
|
||||
# }
|
||||
#- wait_until:
|
||||
# condition:
|
||||
# - lambda: !lambda return disp1->is_setup();
|
||||
# timeout: 10s
|
||||
#- lambda: |-
|
||||
# static const char *const TAG = "on_boot";
|
||||
|
||||
# auto delay_seconds_ = [](int seconds) {
|
||||
# ESP_LOGD(TAG, "Wait %i seconds", seconds);
|
||||
# for (int i = 0; i < (seconds*4); i++) {
|
||||
# #ifdef ARDUINO
|
||||
# delay(250);
|
||||
# #elif defined(USE_ESP_IDF)
|
||||
# vTaskDelay(pdMS_TO_TICKS(250));
|
||||
# #endif
|
||||
# App.feed_wdt();
|
||||
# }
|
||||
# };
|
||||
|
||||
# nextion_status->execute();
|
||||
# if (not disp1->is_setup()) {
|
||||
# ESP_LOGE(TAG, "No response from Nextion display");
|
||||
# ESP_LOGD(TAG, "Turn off Nextion");
|
||||
# screen_power->turn_off();
|
||||
# delay_seconds_(2);
|
||||
# ESP_LOGD(TAG, "Turn on Nextion");
|
||||
# screen_power->turn_on();
|
||||
# delay_seconds_(5);
|
||||
# nextion_status->execute();
|
||||
# }
|
||||
#- wait_until:
|
||||
# condition:
|
||||
# - lambda: !lambda return disp1->is_setup();
|
||||
# timeout: 20s
|
||||
#- lambda: |-
|
||||
# static const char *const TAG = "on_boot";
|
||||
# nextion_status->execute();
|
||||
# if (not disp1->is_setup()) {
|
||||
# ESP_LOGE(TAG, "No response from Nextion display");
|
||||
# }
|
||||
# ESP_LOGD(TAG, "Finished");
|
||||
on_shutdown:
|
||||
then:
|
||||
- switch.turn_off: screen_power
|
||||
@@ -2498,7 +2445,7 @@ script:
|
||||
disp1->set_backlight_brightness(static_cast<float>(brightness) / 100.0f);
|
||||
id(display_last_brightness) = brightness;
|
||||
|
||||
- id: set_climate #DEBUG
|
||||
- id: set_climate
|
||||
mode: restart
|
||||
parameters:
|
||||
current_temp: float
|
||||
|
||||
Reference in New Issue
Block a user