Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only one centered Column instead of three in vertical-layout - HA 2024.6. beta #288

Closed
4 tasks done
VDRainer opened this issue May 31, 2024 · 3 comments
Closed
4 tasks done

Comments

@VDRainer
Copy link

My Home Assistant version: 2024.6.0b3

Layout-card version (FROM BROWSER CONSOLE): 2.4.5

What I am doing:
Since HA 2024.6.0b3 there is only one centered column.

What I expected to happen:
3 Columns

What happened instead:
Only one centered column

Minimal steps to reproduce:
20240531_194352

title: Baustelle
path: baustelle
icon: mdi:account-hard-hat
visible:
  - user: xxxx
type: custom:vertical-layout
layout:
  max_cols: 3

cards:

# Column 1
  - type: vertical-stack
    cards:

      - type: custom:auto-entities
        card:
          type: entities
          title: Column 1
          show_header_toggle: false
        filter:
          include:
            - entity_id: "*.vw_*"
          exclude:
            - entity_id: "*.vw_api_*"
        sort:
          method: domain
          reverse: true

  - type: custom:layout-break

# Column 2 
  - type: vertical-stack
    cards:

      - type: entities
        title: Column 2
        show_header_toggle: false
        state_color: true
        entities:
          - entity: sensor.ug_kn_temperature
            name: Temperatur
            icon: mdi:thermometer-lines
          - entity: sensor.ug_kn_humidity
            name: Luftfeuchte
            icon: mdi:water-percent

Error messages from the browser console: Nothing


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

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
  • Have made sure I am using the latest version of the plugin.
  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
  • Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
@VDRainer
Copy link
Author

VDRainer commented Jun 2, 2024

Found the solution here:
#253

changed:

type: custom:vertical-layout
layout:
  max_cols: 3

to:

type: custom:layout-card
layout_type: custom:vertical-layout
layout:
  max_cols: 3

and it works again.
Looks like the syntax has changed and nobody cares.

@VDRainer VDRainer closed this as completed Jun 2, 2024
@ostracizado
Copy link

ostracizado commented Jun 6, 2024

You sure about:

type: custom:layout-card #card?
layout_type: custom:vertical-layout
layout:
  max_cols: 3

That does seem to fix it somewhat but the "Add" button is gone and while editing in the UI there's no options. That if you add those values at the top of the yaml config.

If it goes at the bottom, as it would natively, with:

type: custom:vertical-layout

And you add:

layout_type: custom:vertical-layout

There's no change.

@VDRainer
Copy link
Author

VDRainer commented Jun 6, 2024

You sure about:

type: custom:layout-card #card?
layout_type: custom:vertical-layout
layout:
  max_cols: 3

That does seem to fix it somewhat but the "Add" button is gone and while editing in the UI there's no options. That if you add those values at the top of the yaml config.

If it goes at the bottom, as it would natively, with:

type: custom:vertical-layout

And you add:

layout_type: custom:vertical-layout

There's no change.

That fixed it for me.
I only use yaml mode and need no buttons.
Maybe open another issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants