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

NaN values on Min, Max & Avg when the show graph is false #248

Closed
dpjrodrigues opened this issue Jan 24, 2020 · 1 comment · Fixed by #249
Closed

NaN values on Min, Max & Avg when the show graph is false #248

dpjrodrigues opened this issue Jan 24, 2020 · 1 comment · Fixed by #249
Labels
bug Something isn't working

Comments

@dpjrodrigues
Copy link

dpjrodrigues commented Jan 24, 2020

Hello,
below is my card setup. In the top 2 cards everytime I enter HA page I'm geting NaN values for Min, Max and Avg. I've read a lot about it and most issues were due to the formats which is not the case here because after some time it starts showing (but it can take a long time) and after I leave HA and comeback or just refresh the page it goes back to NaN again.
image
Based on this behaviour I assume that calculation in this case is only triggered when sensor updates for the first time after the card is renderend (since this temperature sensor do not update that frequently it can really take several minutes)

Still... I continued my investigation and as you can see in the image below I found out that when the show graph is true the problem doesn't exist so there is an issue only when the graph is false.
image

Thanks,
Diogo

@kalkih
Copy link
Owner

kalkih commented Jan 24, 2020

Hello Diogo,

Thanks for the detailed report, I was easily able to reproduce the issue described and have made a fix for it.
The fix will be included in the next release.

Thanks!

kalkih added a commit that referenced this issue Jan 25, 2020
* Force re-render on changes to the extrema (#248)

* Alignment of extrema title when only one extrema value is present

* Need to initialize the array
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

Successfully merging a pull request may close this issue.

2 participants