gadgetchnnel / lovelace-card-templater

Custom Lovelace card which allows Jinja2 templates to be applied to other cards
121 stars 6 forks source link

Indentation of example in readme incorrect #45

Closed TheFes closed 2 years ago

TheFes commented 2 years ago
type: 'custom:card-templater'
card:
  ...
entities:
  - entity: sensor.my_sensor
     state_template: >
       {{ "One" if states.sensor.my_sensor.state == "1" else "Not One" }}
     attributes:
       unit_of_measurement_template: >
         {{ states.sensor.my_sensor_uom.state }}

The indentation of this example is incorrect. state_template: has one space indentation compared to entity:. The same applies to attributes:

gadgetchnnel commented 2 years ago

Thanks, have updated this now.