Makin-Things / platinum-weather-card

This is a fully customisable weather card for Home Assistant with a graphical configuration.
MIT License
138 stars 33 forks source link

non-numeric values passed in (eg "unavailable") disrupt formatting #114

Open donburch888 opened 1 month ago

donburch888 commented 1 month ago

I like the way "Current wind conditions" in the slots section neatly summarises all the wind entities eg "SSE 9km/h (Gust 13km/h)" The documentation also states "If any element is missing it is removed from the display"

However if the entities are unavailable I end up with "unavailable NaNkm/h (Gust NaNkm/h)" which destroys the 2-column format. image

I believe that BOM is supplying the "unavailable" text (possibly because their guage is temporarily out of action - it was working last weekend when I adjusted my configuaration), so not the problem of Platimum Weather card or BOM integration.
image

I looked in Platinum Weather card, but couldn't find separate options for Current Wind and Wind Gust entities (to put them in separate slots), which I thought surprising.

Could I suggest :

Checklist:

Release with the issue: 1.0.5

Browser and Operating System: HA O S

Description of problem: as above

Additional information: