Closed ildar170975 closed 1 year ago
That might be related to the way, HA reports history. I believe, if we ask it "what is the history of the last hour?", it will respond with "nothing" if there were no changes. If we want to fix that, we have to also ask it "What's the current state", and just use that in a flat line.
Not sure, if that's already what we're doing. If it's not, it will be quite some code change. Then, just displaying a message instead of the graph might be easier: "no changes in the last X hours".
Tested with 0.11: no errors, graph IS displayed, also plenty of "fetch" messages in console:
it will be quite some code change.
I just upgraded to 0.12.dev version - and got these "no graph displayed" issues for MANY of my graphs. Earlier these graphs were displayed as flat - and it was OK since it was true. As you can see in the post above, downgrading to 0.11 again caused these graphs displayed.
Then, just displaying a message instead of the graph might be easier: "no changes in the last X hours".
This will be absolutely not informative, 99% of users will expect flat lines in this case.
Hmm... OK. So it's good I didn't fire the release script on the master branch. 😆
It might be my change here: https://github.com/kalkih/mini-graph-card/commit/527f005c902be8a9d572aabcb82993dfedd73572
That's the only difference in calcPoints
I could find.
Seems to be solved by https://github.com/kalkih/mini-graph-card/pull/961 (changes not yet added to a release) @akloeckner - thanks a lot!
:tada: This issue has been resolved in version 0.12.0-dev.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
:tada: This issue has been resolved in version 0.12.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
0.12.0-dev.2
Observe this error in Browser console for ALL entities which were not changed within a selected period:
1) DB size did not change within 4 days (> 24 hrs which is a default value for
hours_to_show
)2) This
input_number
helper was not changed for a long time. Consider this card:Now the graph is not displayed, same errors in the console:
![изображение](https://user-images.githubusercontent.com/71872483/234386760-446b1d61-6fc5-49cf-b35c-5c48c8104110.png)
Change the helper's value - then the graph will be displayed w/o errors: