Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Blank chart and error in console after some time #114

Open
j4c3 opened this issue Aug 5, 2022 · 1 comment · May be fixed by #120
Open

Blank chart and error in console after some time #114

j4c3 opened this issue Aug 5, 2022 · 1 comment · May be fixed by #120

Comments

@j4c3
Copy link

j4c3 commented Aug 5, 2022

If HA is left running in a browser window, returning to a view with the weather-chart-card often results in it being empty. The following error is logged in the console:

weather-chart-card.js:14885 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'datetime') at WeatherChartCard.drawChart (weather-chart-card.js:14885:33) at WeatherChartCard.firstUpdated (weather-chart-card.js:14855:12) at WeatherChartCard._$AE (weather-chart-card.js:314:5153) at WeatherChartCard.performUpdate (weather-chart-card.js:314:4954) at WeatherChartCard.scheduleUpdate (weather-chart-card.js:314:4535) at WeatherChartCard._$E_ (weather-chart-card.js:314:4443) at async WeatherChartCard._$E_ (weather-chart-card.js:314:4385)

I'm not sure yet how long, or what else is happening to cause it.

@greendog99
Copy link

I updated the version of chart.js from 3.5.1 to 3.9.1 in the weather-chart-card and now it renders correctly in Firefox. I've submitted a pull request, but in the meantime you can get my fixed version at https://github.com/greendog99/weather-chart-card/releases

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants