mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-04-13 04:46:53 +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 -%}
|
||||
{{ '%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