Skip to content

Commit

Permalink
fix: cover script check
Browse files Browse the repository at this point in the history
  • Loading branch information
TribuneX committed Jun 10, 2024
1 parent baec638 commit 36ad7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ open_single_cover:
- choose:
- conditions:
- condition: template
value_template: '{{ state_attr("{{ cover_name }}", "current_position") < 100 }}'
value_template: '{{ state_attr(cover_name, "current_position") < 100 }}'
sequence:
- service: cover.open
target:
Expand All @@ -465,7 +465,7 @@ close_single_cover:
- choose:
- conditions:
- condition: template
value_template: '{{ state_attr("{{ cover_name }}", "current_position") > 0 }}'
value_template: '{{ state_attr(cover_name, "current_position") > 0 }}'
sequence:
- service: cover.close
target:
Expand Down

0 comments on commit 36ad7e6

Please sign in to comment.