nilstgmd / hvv-card

Custom Home Assistant card showing HVV departures 🚝
MIT License
5 stars 8 forks source link

Delays are shown in seconds instead of minutes #7

Closed lirand84 closed 1 year ago

lirand84 commented 1 year ago

Delays are shown in seconds instead of minutes HVV Lovelace Card

N1c093 commented 1 year ago

I also noticed the problem and reported in in Home Assistant Core to the maintainer of the hvv_departures. See https://github.com/home-assistant/core/issues/81088

It seems like that it won't be fixed in Home Assistant Core, because the hvv api returns the delay in seconds. So it's "worked by design", that the delay is returned in seconds. Therefore we have to fix it in the hvv-card.

I will create a PR once the final decision is made in the linked issue. Actually I don't know, if the PR will be merged, sadly this repository seems unmaintained.