Skip to content

Commit

Permalink
Merge pull request #165 from tykeal/fix_automations
Browse files Browse the repository at this point in the history
Fix: Stringify rental_control_name in automations
  • Loading branch information
tykeal authored Jul 12, 2023
2 parents a9fe78a + 5eace92 commit 5f5b232
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ automation:
- platform: event
event_type: rental_control_clear_code
event_data:
rental_control_name: {{ rc_name }}
rental_control_name: "{{ rc_name }}"
condition: []
action:
service: input_boolean.toggle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ automation:
- platform: event
event_type: rental_control_set_code
event_data:
rental_control_name: {{ rc_name }}
rental_control_name: "{{ rc_name }}"
variables:
slot_name: '{% raw %}{{ trigger.event.data.slot_name }}{% endraw %}'
code_slot: '{% raw %}{{ trigger.event.data.code_slot }}{% endraw %}'
Expand Down
2 changes: 1 addition & 1 deletion custom_components/rental_control/templates/startup.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ automation:
- platform: event
event_type: rental_control_refresh
event_data:
rental_control_name: {{ rc_name }}
rental_control_name: "{{ rc_name }}"
condition: []
action:
- delay:
Expand Down

0 comments on commit 5f5b232

Please sign in to comment.