minor bug fix

This commit is contained in:
Mahasri Kalavala
2020-10-01 08:31:00 -04:00
parent b21706d3cd
commit 2de4d7cc56
2 changed files with 13 additions and 13 deletions

View File

@@ -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 %}