Rename lights on macro
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
{{ ((current / 255) * 100) | float | round(2) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro lightsOn(type,method) %}
|
||||
{% macro lights_on(type,method) %}
|
||||
{% set lights = states('sensor.current_lights_on') %}
|
||||
{% if method == 'tts' %}
|
||||
Around the house, there {% if lights == '1' %}is {% else %}are {% endif %}currently {{ lights }} {% if lights == '1' %}light {% else %}lights {% endif %}on.
|
||||
|
Reference in New Issue
Block a user