Remove invalid example (#9234)

The example of a template for the name variable is not supported by the component. Templates are valid for the title and message only as evidenced by the component schema.
This commit is contained in:
tomlut 2019-06-19 06:20:03 +10:00 committed by Franck Nijhof
parent c31a4dc1b9
commit 473090ee73

View File

@ -237,29 +237,6 @@ alert:
The resulting message could be `Plant Officeplant needs help (moisture low)`.
The next example uses a template for the alert name.
{% raw %}
```yaml
alert:
garage_door:
name: Garage has been open for {{ relative_time(states.binary_sensor.garage.last_changed) }}
done_message: Garage is closed
entity_id: binary_sensor.garage
state: 'on'
repeat:
- 30
- 60
- 120
can_acknowledge: true
skip_first: true
notifiers:
- ryans_phone
```
{% endraw %}
The resulting title of the alert could be `Garage has been open for 30 min`.
### {% linkable_title Additional parameters for notifiers %}
Some notifiers support more parameters (e.g., to set text color or action