Improve current_time macro

This commit is contained in:
2023-11-06 12:51:54 -05:00
parent b863d7f004
commit 4b21639690
5 changed files with 35 additions and 32 deletions

View File

@ -17,7 +17,7 @@
{% if is_state('binary_sensor.morning','on') %}
<s>Today is {{ current_date_readout() }}.</s>
{% else %}
<s>It is {{ current_time(12) }}.</s>
<s>It is {{ current_time('time',12) }}.</s>
{% endif %}
{% if is_state('sensor.anniversary_kallen_s_birthday', '0') %}