bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
234 stars 32 forks source link

start_card parameter not working after update to 2021.11 #41

Open keiferoh opened 2 years ago

keiferoh commented 2 years ago

After updating to Home Assistant Core version 2021.11 the "start_card" parameter no longer functions. Cards always default to the first card, regardless of what is specified for "start_card"

The example below shows the first card "Calendar" showing, but start_card is set to "4".

IMG_3417

Screen Shot 2021-11-06 at 8 44 38 PM
zgadson commented 2 years ago

Can confirm. This is happening to me as well even when I simplify my yaml to minimal code.

And wow, keiferoh, I've never seen the Swipe card used like in your screenshot! That looks awesome! And I can see why it would look even better starting on card 4! lol

keiferoh commented 2 years ago

Thanks!

IMG_3423

ildar170975 commented 2 years ago

MWE:

type: custom:swipe-card
start_card: 4
cards:
  - type: entities
    entities:
      - sun.sun
  - type: entities
    entities:
      - sun.sun
      - sun.sun
  - type: entities
    entities:
      - sun.sun
      - sun.sun
      - sun.sun
  - type: entities
    entities:
      - sun.sun
      - sun.sun
      - sun.sun
      - sun.sun

image

Case start_card: 4 works erratically. Sometimes it causes displaying "4 rows card", sometimes it displays nothing.