Fixed formatting (#9484)

This commit is contained in:
DubhAd 2019-05-18 21:12:45 +01:00 committed by Klaas Schoute
parent aace4121d5
commit bfd23b1228

View File

@ -54,7 +54,7 @@ language:
You will find an example below when the state is "on". You will find an example below when the state is "on".
{% raw %} ```
attribution: Information provided by MeteoAlarm attribution: Information provided by MeteoAlarm
language: en-GB language: en-GB
category: Met category: Met
@ -76,7 +76,7 @@ awareness_type: 8; forest-fire
unit_of_measurement: unit_of_measurement:
friendly_name: meteoalarm friendly_name: meteoalarm
icon: mdi:alert icon: mdi:alert
{% endraw %} ```
There are a few awareness levels: There are a few awareness levels:
@ -89,6 +89,7 @@ There are a few awareness levels:
Below you find an example of an automation. Below you find an example of an automation.
{% raw %} {% raw %}
```yaml
automation: automation:
- alias: Alert me about weather warnings - alias: Alert me about weather warnings
trigger: trigger:
@ -100,6 +101,7 @@ automation:
data_template: data_template:
title: '{{state_attr('binary_sensor.meteoalarm', 'headline')}}' title: '{{state_attr('binary_sensor.meteoalarm', 'headline')}}'
message: "{{state_attr('binary_sensor.meteoalarm', 'description')}} is effective on {{state_attr('binary_sensor.meteoalarm', 'effective')}}" message: "{{state_attr('binary_sensor.meteoalarm', 'description')}} is effective on {{state_attr('binary_sensor.meteoalarm', 'effective')}}"
```
{% endraw %} {% endraw %}
<p class='note warning'> <p class='note warning'>