Rename lights on macro

This commit is contained in:
2024-03-25 15:57:50 -04:00
parent 363716d2fb
commit b5457a21e1
2 changed files with 4 additions and 4 deletions

View File

@ -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.