Move "services down" to a macro for possible re-use elsewhere
Also improved the wording
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
{% from 'speech.jinja' import greeting, today_is, sun_status %}
|
||||
{% from 'weather.jinja' import weatherReport %}
|
||||
{% from 'sports.jinja' import sports_updates %}
|
||||
{% from 'server.jinja' import services_down %}
|
||||
<p>
|
||||
{{ greeting('date') }}
|
||||
</p>
|
||||
@ -22,10 +23,7 @@
|
||||
</p>
|
||||
|
||||
<p>
|
||||
There are {{ states('sensor.services_down') }} services currently offline.
|
||||
{% if states('sensor.services_down') | int > 0 %}
|
||||
They are {{ state_attr('sensor.services_down','services') }}.
|
||||
{% endif %}
|
||||
{{ services_down() }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Reference in New Issue
Block a user