timer-bar-card
timer-bar-card copied to clipboard
`resolution: automatic` showing 60mins instead of an additional hour
First: thank you for this card; it's a very nice card!
Bug Description
When selecting resolution: automatic
, the remaining time is nicely truncated to show hours and minutes, but no seconds, when there's more than 1 hour remaining. Unfortunately, it rounds the minuntes up, even when there's X:59:SS left, meaning it'll show X hours and 60 minutes.
Card configuration (nothing exciting)
type: custom:timer-bar-card
entities:
- timer.a_c
invert: true
layout: full_row
resolution: automatic
Debug information I haven't included this, as the card is function fine, just showing an odd number in the GUI. If you do want me to include, please let me know.
I guess the solution could be to round the minutes down, instead of up, which would avoid a more complicated logic to add another hour. If this is undesirable, of course it could be done to add an hour when the minutes would be 60.