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.
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.
I can see that in a simple horizontal-stack also
Most helpful comment
I can see that in a simple horizontal-stack also