mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Modernize templates
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
>-
|
||||
|
||||
{%- if is_state('binary_sensor.iss', 'on') -%}
|
||||
Here is something interesting. The international space station is above us now. There are {{ states.binary_sensor.iss.attributes['number_of_people_in_space'] }} people in space right now.
|
||||
Here is something interesting. The international space station is above us now. There are {{ state_attr('binary_sensor.iss','number_of_people_in_space') }} people in space right now.
|
||||
{%- endif -%}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
>-
|
||||
|
||||
{%- if states.sensor.moon.state == 'Full moon' -%}
|
||||
{%- if states('sensor.moon') == 'full_moon' -%}
|
||||
{{
|
||||
[
|
||||
"Check out the full moon tonight!",
|
||||
|
||||
Reference in New Issue
Block a user