addon-vscode
addon-vscode copied to clipboard
Config check flags template triggers as an error.
When defining a template entity in yaml, triggers is flagged as shown below
This is the example from the docs. It will pass HA's configuration checker and load as expected.
template:
- triggers:
- trigger: time_pattern
# This will update every night
hours: 0
minutes: 0
sensor:
# Keep track how many days have past since a date
- name: "Not smoking"
state: '{{ ( ( as_timestamp(now()) - as_timestamp(strptime("06.07.2018", "%d.%m.%Y")) ) / 86400 ) | round(default=0) }}'
unit_of_measurement: "Days"
Studio code server version 5.19.3