From 36a081177639537da441675fb543e0c05551fb38 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Sun, 23 Apr 2023 14:29:57 +0200 Subject: [PATCH] Standardize yaml No changes in functionalities, just removing blank lines and indentation of comments. --- nspanel_esphome.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index f6107cf..c497427 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -27,7 +27,7 @@ substitutions: ###### USE THIS ONLY FOR YOUR FIRST TFT UPLOAD ###### AND IF EXIT-REPARSE BUTTON FAILS -###### ONCE IT WORKED, REMOVE THOSE LINES +###### ONCE IT WORKED, REMOVE THESE LINES ###### https://github.com/esphome/esphome/pull/2956 # external_components: # - source: github://pr#2956 @@ -90,7 +90,7 @@ ota: ##### LOGGER ##### logger: baud_rate: 0 -# level: WARN + # level: WARN ##### CONFIGURE INTERNAL BUZZER ##### output: @@ -366,6 +366,7 @@ api: } else { id(disp1).set_component_text_printf(btnbri.c_str(), " "); } + #### Service to set the entities #### - service: set_entity variables: @@ -557,12 +558,12 @@ sensor: reference_resistance: 10kOhm filters: - lambda: return x + id(temperature_correction_global); -# on_value: -# then: -# - wait_until: -# switch.is_on: nextion_init -# - lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page. -# - lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state); + #on_value: + # then: + # - wait_until: + # switch.is_on: nextion_init + # - lambda: id(disp1).set_component_text_printf("home.current_temp", "%.1f°", id(temp_nspanel).state); # onboard temp (thermostat temp) to home page. + # - lambda: id(disp1).set_component_text_printf("climate.current_temp", "%.1f", id(temp_nspanel).state); ##### current value of page-climate target_temp ##### - platform: template @@ -603,7 +604,6 @@ sensor: # send text field percentage of current_lightslider_val - lambda: id(disp1).set_component_text_printf("settings.a04", "%i", id(display_dim_brightness_global)); - ##### START - TEXT SENSOR CONFIGURATION ##### text_sensor: @@ -670,7 +670,6 @@ text_sensor: - lambda: |- id(page_timer)->execute(int(id(page_timeout).state)); - ##### START - SWITCH CONFIGURATION ##### switch: @@ -826,7 +825,7 @@ number: id: temperature_correction_global value: !lambda 'return x;' -##### page-timeout ##### + ##### page-timeout ##### - platform: template name: ${device_name} Page Timeout id: page_timeout