nilstgmd / hvv-card

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

Show info on unavailable/interrupted service #16

Open cschilling opened 1 year ago

cschilling commented 1 year ago

As of now there will be an error if the state of an Entity is "unavailable" that prevents the card from rendering (${stateObj.attributes['next'].map cannot be called on those entities). This is eg. right now the case with the S2 at station "Stadthausbrücke".

This change displays an icon next to the "friendly_name" (if set) to indicate an outage and renders all other lines regardless.