From 473090ee734f71362f5e265549da219cb8199ba9 Mon Sep 17 00:00:00 2001 From: tomlut <10679300+tomlut@users.noreply.github.com> Date: Wed, 19 Jun 2019 06:20:03 +1000 Subject: [PATCH] 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. --- source/_components/alert.markdown | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/source/_components/alert.markdown b/source/_components/alert.markdown index 30c42c90a5e..e1d74c78cc0 100644 --- a/source/_components/alert.markdown +++ b/source/_components/alert.markdown @@ -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