Fix error preventing long click on button pages
This commit is contained in:
@@ -5357,7 +5357,7 @@ action:
|
||||
##### Long Press Entity Name #####
|
||||
entity_long_name: "{{ last_click_button.name }}"
|
||||
##### Long Press Entity Icon #####
|
||||
entity_long_icon: "{{ nextion.icons.all[last_click_button.icon.split(':')[1]] | default(last_click_button.icon if last_click_button.icon is string else '\U0000E2D5') }}"
|
||||
entity_long_icon: "{{ (nextion.icons.all[last_click_button.icon.split(':')[1]] | default('\U0000E2D5') if last_click_button.icon.split(':') | count > 0 else last_click_button.icon) if last_click_button.icon is defined and last_click_button.icon is string and last_click_button.icon | length > 0 else '\U0000E2D5' }}"
|
||||
##### Long Press Entity Icon Color #####
|
||||
entity_long_icon_color: "{{ last_click_button.icon_color_rgb if is_number(last_click_button.icon_color_rgb) else ((last_click_button.icon_color_rgb[0] //(2**3)) *(2**11))+((last_click_button.icon_color_rgb[1] //(2**2)) *(2**5))+(last_click_button.icon_color_rgb[2] //(2**3)) }}"
|
||||
##### Current Page #####
|
||||
|
||||
Reference in New Issue
Block a user