upd: remove trailing spaces

This commit is contained in:
deejaybeam
2023-04-19 23:37:01 +02:00
parent b18f2848f4
commit 2cf447f660

View File

@@ -4461,20 +4461,20 @@ action:
# Button PIC GRAY/WHITE # Button PIC GRAY/WHITE
btn_pic: > btn_pic: >
{{ {{
nextion.pics.button.on nextion.pics.button.on
if current_entity_state in ['on', 'open', 'opening', 'home'] if current_entity_state in ['on', 'open', 'opening', 'home']
or (item_domain == 'climate' and current_entity_state != 'off') or (item_domain == 'climate' and current_entity_state != 'off')
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity') or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
else nextion.pics.button.off else nextion.pics.button.off
}} }}
# TEXT, BRIGHTNESS and ICON Background # TEXT, BRIGHTNESS and ICON Background
btn_bg: > btn_bg: >
{{ {{
nextion.colors.white nextion.colors.white
if current_entity_state in ['on', 'open', 'opening', 'home'] if current_entity_state in ['on', 'open', 'opening', 'home']
or (item_domain == 'climate' and current_entity_state != 'off') or (item_domain == 'climate' and current_entity_state != 'off')
or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity') or (item_domain in ['button','input_button','scene'] and trigger.id is match 'current_state_entity')
else nextion.colors.grey_dark else nextion.colors.grey_dark
}} }}
# ICON Font Color # ICON Font Color
btn_icon_font: > btn_icon_font: >