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

"Show current" seems to crash the card #58

Closed
sgofferj opened this issue Jul 3, 2020 · 3 comments
Closed

"Show current" seems to crash the card #58

sgofferj opened this issue Jul 3, 2020 · 3 comments

Comments

@sgofferj
Copy link

sgofferj commented Jul 3, 2020

I also had the problem with the card disappearing recently and did a bit of experimentation.
It appears, when I select "show current", the card crashes or is not loaded.

I see the following error in the console:

weather-card.js:169
Uncaught (in promise) TypeError: Cannot read property 'state' of undefined
    at HTMLElement.renderCurrent (weather-card.js:169)
    at HTMLElement.render (weather-card.js:151)
    at HTMLElement.update (app.9108bd0a.js:1)
    at HTMLElement.performUpdate (app.9108bd0a.js:1)
    at HTMLElement._enqueueUpdate (app.9108bd0a.js:1)

When I disable/omit "show current", the card loads, however it does not display it's name.
The error is the same if I use the locally installed (HACS) version or the hosted one.

Tested with Chrome and firefox on Ubuntu 18.04. HA is the latest docker image running on docker.

It might be related to #54 but I'm not sure, so I opened a separate issue.

@bramkragten
Copy link
Owner

bramkragten commented Jul 3, 2020

Make sure you have sun loaded.

@bramkragten
Copy link
Owner

Fixed in v1.4.6

@sgofferj
Copy link
Author

sgofferj commented Jul 5, 2020

Confirmed fixed

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

No branches or pull requests

2 participants