mirror of
https://github.com/skalavala/mysmarthome.git
synced 2025-08-27 14:57:19 +00:00
minor bug fix
This commit is contained in:
@@ -86,7 +86,7 @@ sensor:
|
||||
value_template: >
|
||||
{% set seconds = states('sensor.octoprint_time_remaining')|int %}
|
||||
{% if now().strftime('%s')|int | timestamp_custom("%A %D") == (now().strftime('%s') |int + seconds) | timestamp_custom("%A %D") %}
|
||||
Today at {{- now().strftime('%s')|int | timestamp_custom("%l:%M %p") }}
|
||||
Today at {{- (now().strftime('%s')|int + seconds) | timestamp_custom("%l:%M %p") }}
|
||||
{% else %}
|
||||
{{ (now().strftime('%s') |int + seconds) | timestamp_custom("%A %D %l:%M %p") }}
|
||||
{% endif %}
|
||||
|
Reference in New Issue
Block a user