iantrich / config-template-card

📝 Templatable Lovelace Configurations
MIT License
425 stars 55 forks source link

map-card inside config-template-card is missing most of the time #99

Closed noxhirsch closed 1 year ago

noxhirsch commented 2 years ago

Checklist:

Release with the issue: 2022.3.X (from 2022.3.0b0 to 2022.4.0.dev20220309)

Last working release (if known): 2022.2.9

Browser and Operating System: Current version of Edge Chromium & Firefox - both on Win 11

Description of problem: If using a map-card inside config-template-card, it is missing most of the time on first load. It seems to appear, if the entity gets an update, if you edit the card or if you come from another dashboard.

Tested on my main HA instance and on an empty second instance with different HA versions (as listed above) and without any other frontend cards/modifications.

Javascript errors shown in the web inspector (if applicable):

Additional information:

Example config (as minimalistic as possible to eliminate config errors):

type: custom:config-template-card
entities:
  - person.nico
variables:
  - states['person.nico'].state
card:
  type: map
  entities:
    - entity: person.nico

The card should be visible here:

image

And here:

image

It appears when you open the editor:

image
idoaflalo commented 2 years ago

Experiencing the same problem

ildar170975 commented 2 years ago

Confirm the same with a bit more simple code:

type: custom:config-template-card
entities:
  - person.ildar
card:
  type: map
  entities:
    - entity: person.ildar
idoaflalo commented 1 year ago

Up

ildar170975 commented 1 year ago

iOS Companion App - usually do not observe the issue iPad Air 2, iOS 15.x

ildar170975 commented 1 year ago

2023.1.6 Do not observe this issue:

idoaflalo commented 1 year ago

The problem seems to be solved in the new versions of home assistant.

ildar170975 commented 1 year ago

Seems to be solved. Closing.