mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-07-22 03:30:24 +00:00
Updates to a nice clean Days, Hours, Minute format.
This commit is contained in:
parent
76b7606558
commit
ed22639327
@ -24,4 +24,18 @@
|
|||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ ', ' }}
|
{{ ', ' }}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{{ '%02d' % hours }}:{{ '%02d' % minutes }}
|
{%- if hours > 0 -%}
|
||||||
|
{%- if hours == 1 -%}
|
||||||
|
1 hour
|
||||||
|
{%- else -%}
|
||||||
|
{{ hours }} hours
|
||||||
|
{%- endif -%}
|
||||||
|
{{ ', ' }}
|
||||||
|
{%- endif -%}
|
||||||
|
{%- if minutes > 0 -%}
|
||||||
|
{%- if minutes == 1 -%}
|
||||||
|
1 minute
|
||||||
|
{%- else -%}
|
||||||
|
{{ minutes }} minutes
|
||||||
|
{%- endif -%}
|
||||||
|
{%- endif -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user