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
btn_pic: >
{{
nextion.pics.button.on
if current_entity_state in ['on', 'open', 'opening', 'home']
or (item_domain == 'climate' and current_entity_state != 'off')
nextion.pics.button.on
if current_entity_state in ['on', 'open', 'opening', 'home']
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')
else nextion.pics.button.off
else nextion.pics.button.off
}}
# TEXT, BRIGHTNESS and ICON Background
btn_bg: >
{{
nextion.colors.white
if current_entity_state in ['on', 'open', 'opening', 'home']
or (item_domain == 'climate' and current_entity_state != 'off')
nextion.colors.white
if current_entity_state in ['on', 'open', 'opening', 'home']
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')
else nextion.colors.grey_dark
else nextion.colors.grey_dark
}}
# ICON Font Color
btn_icon_font: >