custom-cards / decluttering-card

🧹 Declutter your lovelace configuration with the help of this card
MIT License
379 stars 29 forks source link

decluttering-card that has another inside it stopped working in HA 110 #26

Open i00 opened 4 years ago

i00 commented 4 years ago

Checklist:

Release with the issue: HA 0.110.0+

Last working release (if known): HA 0.109.6

Browser and Operating System:

Chrome Windows 10

Description of problem:

A card with another custom:decluttering-card within it doesn't work anymore e.g.:

  AndroidTVControl_WithLGNetcastTV:
    card:
      card:
        cards:
          - content: >-
              {% set InitialImage = states.sensor.base_url.state +
              state_attr('media_player.' + '[[Entity_LGNetcastTV_NoDomain]]',
              'entity_picture') %} <img src='{{ InitialImage }}' width=100% 
              onload="setTimeout(() => this.src = '{{ InitialImage }}&' + (new
              Date()).getTime(), 2500)" onerror="this.src = '{{ InitialImage
              }}&' + (new Date()).getTime()">
            ignore_line_breaks: true
            type: 'custom:html-template-card'
          - template: AndroidTVControl
            type: 'custom:decluttering-card'
            variables:
              - Entity: '[[Entity_AndroidTV]]'
        type: 'custom:vertical-stack-in-card'
      conditions:
        - entity: 'media_player.[[Entity_LGNetcastTV_NoDomain]]'
          state_not: 'off'
      type: conditional
    default:
      - Entity_AndroidTV: ''
      - Entity_LGNetcastTV_NoDomain: ''

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

No JS errors

Additional information:

i00 commented 4 years ago

Whops ... cleared browser cache now works :)

i00 commented 4 years ago

Actually... was wrong ... it works sometimes and not others...

RomRider commented 4 years ago

What do you mean by doesn't work? You need to be a bit more explicit :)

i00 commented 4 years ago

Most of the time the inner one just doesn't show at all ... no error just doesn't load; if I keep refreshing the page it loads some of the time. It would always load in HA 0.109.6 and earlier

LouisF410 commented 4 years ago

@i00 Reinstall fixed it for me. image

i00 commented 4 years ago

@LouisF410 ... I use docker ... so cards are not setup in like that (IDK why they don't put it into the docker image; would be much better IMHO).