Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
donburch888 opened this issue Jul 26, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@donburch888
Copy link

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:

@donburch888 donburch888 added the bug Something isn't working label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant