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

Strange behaviors with custom cards after 0.110 update #5965

Closed
3 tasks done
RomRider opened this issue May 21, 2020 · 2 comments · Fixed by #5967
Closed
3 tasks done

Strange behaviors with custom cards after 0.110 update #5965

RomRider opened this issue May 21, 2020 · 2 comments · Fixed by #5967
Labels
Bug Current Bug in UI - Extra Attention

Comments

@RomRider
Copy link
Contributor

RomRider commented May 21, 2020

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

The problem

I can see quite some issues with the latest update and custom cards because the hass object is (sometimes not always, but quite often) being assigned while still being undefined. Is this expected from lovelace?
Also sometimes the setConfig is called before the element is created.

TypeError: t.setConfig is not a function
    at /__vscode-remote-uri__/workspaces/xxxx/dist/frontend_latest/chunk.3794da5240b9979884e1.js:2140:6459

Both of those things happen only after a refresh of the page (not reload from the menu). A "reload" from the menu fixes it but it's definitely not ideal.

Expected behavior

Steps to reproduce

Environment

  • Home Assistant release with the issue: 0.110.0
  • Last working Home Assistant release (if known): 0.109.6
  • Browser and browser version: Chrome MacOS / Chrome Android
  • Operating system: MacOS / Android

State of relevant entities

Problem-relevant configuration

Javascript errors shown in your browser console/inspector

Additional information

@bramkragten
Copy link
Member

Where do you get hass before it is defined? I can see it happening in picture elements, made a fix for that. Any other place?

The setConfig issue is already fixed.

@RomRider
Copy link
Contributor Author

I can see that in a simple horizontal-stack also

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants