Use condition shorthand notations

This commit is contained in:
2022-05-07 10:41:32 +03:00
parent bd28132229
commit 4272699dc7
10 changed files with 16 additions and 48 deletions
+1 -2
View File
@@ -119,8 +119,7 @@ automation:
- platform: state
entity_id: group.bedroom_windows
condition:
- condition: template
value_template: "{{ now().hour >= states('input_datetime.alarm_time')[0:2]|int }}"
- "{{ now().hour >= states('input_datetime.alarm_time')[0:2]|int }}"
- condition: not
conditions:
- condition: state