Over the past few months I have noticed that my automations.yaml is wrapped at about 81 characters. This does not cause any problems, but it is not very human readable. Is there a way I can turn this off, or perhaps is there a way I can format this to keep things more human readable? Here is an example of how I want it to look:
service: input_text.set_value
data:
entity_id: input_text.front_door_lock_status
value: >-
{% set users = ['Chris','Violet','Pat or Bob','Melanie','Amelia'] %}
{% set userID = trigger.event.data.parameters['userId'] %}
{% set user = 'Keypad' if userID == null else users[userID|int -1] %}
{% if trigger.event.data.event_label == 'Manual unlock operation' %} Manual Unlock
{% elif trigger.event.data.event_label == 'Manual lock operation' %} Manual Lock
{% elif trigger.event.data.event_label == 'RF unlock operation' %} RF Unlock
{% elif trigger.event.data.event_label == 'RF lock operation' %} RF Lock
{% elif trigger.event.data.event_label == 'Keypad unlock operation' %} Keypad Unlock ({{ user }})
{% elif trigger.event.data.event_label == 'Keypad lock operation' %} Keypad Lock ({{ user }})
{% else %} "{{trigger.event.data.event_label}}"
{% endif %}
Once I edit the automation and save it, this is what I get:
service: input_text.set_value
data:
entity_id: input_text.front_door_lock_status
value: >-
{% set users = ['Chris','Violet','Pat or Bob','Melanie','Amelia'] %} {% set
userID = trigger.event.data.parameters['userId'] %} {% set user = 'Keypad'
if userID == null else users[userID|int -1] %} {% if
trigger.event.data.event_label == 'Manual unlock operation' %} Manual Unlock
{% elif trigger.event.data.event_label == 'Manual lock operation' %} Manual
Lock {% elif trigger.event.data.event_label == 'RF unlock operation' %} RF
Unlock {% elif trigger.event.data.event_label == 'RF lock operation' %} RF
Lock {% elif trigger.event.data.event_label == 'Keypad unlock operation' %}
Keypad Unlock ({{ user }}) {% elif trigger.event.data.event_label == 'Keypad
lock operation' %} Keypad Lock ({{ user }}) {% else %}
"{{trigger.event.data.event_label}}" {% endif %}
Thanks!