decluttering-card icon indicating copy to clipboard operation
decluttering-card copied to clipboard

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

Open i00 opened this issue 4 years ago • 6 comments

Checklist:

  • [x] I updated to the latest version available
  • [x] I cleared the cache of my browser

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 avatar May 28 '20 06:05 i00

Whops ... cleared browser cache now works :)

i00 avatar May 28 '20 06:05 i00

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

i00 avatar May 29 '20 01:05 i00

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

RomRider avatar May 29 '20 05:05 RomRider

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

i00 avatar May 30 '20 04:05 i00

@i00 Reinstall fixed it for me. image

LouisF410 avatar May 30 '20 06:05 LouisF410

@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).

i00 avatar May 31 '20 23:05 i00