From 17c14e9ab0f56ff6f93a0fe11f6c5a0f0189e7b4 Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Fri, 22 Sep 2023 11:17:35 +0200 Subject: [PATCH] Code clean-up --- nspanel_esphome.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/nspanel_esphome.yaml b/nspanel_esphome.yaml index 703d34d..eadc9f0 100644 --- a/nspanel_esphome.yaml +++ b/nspanel_esphome.yaml @@ -975,7 +975,6 @@ binary_sensor: on_click: - button.press: restart_nspanel - ##### global variable to keep track on whether the Nextion display is ready or not. ## Delays initial info from HA to the display ##### - name: ${device_name} Nextion display id: nextion_init @@ -1523,9 +1522,9 @@ switch: number: ##### SCREEN BRIGHTNESS ##### - - platform: template - name: ${device_name} Display Brightness + - name: ${device_name} Display Brightness id: display_brightness + platform: template entity_category: config unit_of_measurement: '%' min_value: 1 @@ -1543,9 +1542,9 @@ number: if (id(current_page).state == "settings") id(disp1).set_component_text_printf("bright_text", "%i%%", int(x)); ##### SCREEN BRIGHTNESS DIMMED DOWN ##### - - platform: template - name: ${device_name} Display Brightness Dimdown + - name: ${device_name} Display Brightness Dimdown id: display_dim_brightness + platform: template entity_category: config unit_of_measurement: '%' min_value: 1