lovelace-layout-card: Lovelace dashboard doesn't show up until it is edited after Home Assistant upgrade

When lovelace is initially loaded, it’s blank. If I look in the DOM, I can find Custom element doesn't exist: layout-card. If I go to the menu and click “Edit Dashboard”, everything works normally.

This only seems to be happening on certain pages.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 20 (1 by maintainers)

Most upvoted comments

I have exactly the same problem since update to HA 0.116.

I can reproduce the issue with this simple layout in panel mode:

cards:
  - entity: weather.home
    theme: Animated Weather Card
    type: weather-forecast
type: 'custom:layout-card'

I’ve cleared all cache data.

It seems to help to put the layout-card in a horizontal-stack or decluttering-card. Vertical-stack also works but created a padding above the layout card in my case.

I did a little testing and do not believe this is an issue with this card but a general Home Assistant issue with custom cards.

I was able to replicate the behavior with several different custom cards as well as with a very simple test card built from the Home Assistant documentation. The issue is probably related to the lazy loading changes made in HA 0.116

And there are developers here or no one cares

Just discovered following: If the layout-card is not the first view which is display on reload, everything is fine. So it seems it’s related with initial loading of HA.