thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.08k stars 127 forks source link

view_layout option not accepted by custom card #141

Closed hk-ret closed 3 years ago

hk-ret commented 3 years ago

My Home Assistant version: 2021.4.5

Layout-card version (FROM BROWSER CONSOLE): 2.2.3

What I am doing: Arrange cards on a view using grid-type layout. I'm trying to position the individual cards by adding view_layout: options to the cards. Some of the cards are of the custom type apexcharts-card.

What I expected to happen: Cards to be rendered accordingly.

What happened instead: The cards are positioned as expected. however for the apexcharts-cards I get a red box saying:

/// apexcharts-card version 1.8.2 /// value.view_layout is extraneous

type: 'custom:apexcharts-card'
view_layout:
  grid-area: main

Minimal steps to reproduce:

View:

    layout:
      grid-template-columns: auto
      grid-template-rows: auto
      grid-template-areas: |
        "main"
    cards:
      - type: 'custom:apexcharts-card'
        view_layout:
          grid-area: main
......

Error messages from the browser console: I could not identify any error in the console relating to this issue.


By putting an X in the boxes ([X]) below, I indicate that I:

RomRider commented 3 years ago

That is fixed in the latest version of apexcharts-card.

hk-ret commented 3 years ago

I confirm that the issue is fixed. Sorry for assuming that the issue was in in the layout-card.🤭

hk-ret commented 3 years ago

confirmed to be fixed