Skip to content

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

@donburch888

Description

@donburch888

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 :

  • check that the values being passed in are numberic, and/or
  • provide separate Current Wind Direction, Current Wind Speed, and Wind Gust entities as well as the Current wind conditions entity

Checklist:

  • [Y ] I updated to the latest version available
  • [ Y] I cleared the cache of my browser

Release with the issue:
1.0.5

Browser and Operating System:
HA O S

Description of problem:
as above

Additional information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions