Macro updates

This commit is contained in:
2023-05-12 14:22:00 -04:00
parent af26105994
commit e30f1646c7
4 changed files with 19 additions and 12 deletions

View File

@ -2,12 +2,12 @@
{{ (states(input_number)) | int * 60 }}
{% endmacro %}
{% macro current_time_12hr() %}
{% macro current_time(hr) %}
{% if hr == 12 %}
{{ now().strftime('%-I:%M %p') }}
{% endmacro %}
{% macro current_time_24hr() %}
{% elif hr == 24 %}
{{ now().strftime('%H:%M') }}
{% endif %}
{% endmacro %}
{% macro current_date_input() %}