This commit is contained in:
Home Assistant Version Control
2026-08-08 02:28:56 +00:00
parent 671e63eaf3
commit 75df644274
3 changed files with 25 additions and 24 deletions
+1 -1
View File
@@ -128,7 +128,7 @@
},
{
"type": "markdown",
"content": "**Est. finish:** {{ (as_local(states('sensor.octoprint_approximate_completion_time') | as_datetime)).strftime('%I:%M %p').lstrip('0') }}",
"content": "{% set finish = states('sensor.octoprint_approximate_completion_time') | as_datetime %}{% if finish %}**Est. finish:** {{ (as_local(finish)).strftime('%I:%M %p').lstrip('0') }}{% else %}**Est. finish:** —{% endif %}",
"grid_options": {
"columns": 6
}