ofekashery / vertical-stack-in-card

📐 Home Assistant Card: Group multiple cards into a single sleek card.
MIT License
897 stars 79 forks source link

Card do not work when inside an !include #87

Closed yuvalabou closed 2 years ago

yuvalabou commented 4 years ago

Tried to compact my lovelace.yaml file with !include and when inside the external YAML file it says no card type configured - However - when using normal vertical stack it is working as expected.

THIS IS WORKING -

type: vertical-stack
cards:
  - type: picture-elements
    image: /local/assets/vacuum_banner.jpg
    elements:
      - type: state-label
        entity: vacuum.xiaomi_vacuum_cleaner

AND THIS IS NOT -

type: 'custom:vertical-stack-in-card'
cards:
  - type: picture-elements
    image: /local/assets/vacuum_banner.jpg
    elements:
      - type: state-label
        entity: vacuum.xiaomi_vacuum_cleaner

(the dash is missing in front of "type" because it is in front of the !include command in the main lovelace.

thanks.