Code clean-up

This commit is contained in:
Edward Firmo
2023-09-22 11:17:35 +02:00
parent 1065fe0568
commit 17c14e9ab0

View File

@@ -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