kinghat / tabbed-card

a custom card for home assistant that utilizes tabs to segregate individual cards.
MIT License
87 stars 10 forks source link

[Bug]: Unable to use conditional cards as tabs #137

Open jeffbeale opened 7 months ago

jeffbeale commented 7 months ago

Description

The tabbed-card ignores all the conditional pieces of the conditional cards and displays the card underneath the conditional card. image

Environment

- OS: Linux, Arch-based (garuda)
- Browser: Firefox
- Home Assistant Version: 2023.11.2       
- Tabbed Card Version: 0.3.2

Reproducible configuration

type: custom:tabbed-card
options: {}
tabs:
  - attributes:
      label: A
    card:
      type: conditional
      conditions:
        - condition: state
          entity: input_boolean.choresab
          state: 'on'
      card:
        type: todo-list
        entity: todo.chores_weekly_a
        title: Weekly chore list A
  - attributes:
      label: B
    card:
      type: conditional
      name: B
      conditions:
        - condition: state
          entity: input_boolean.choresab
          state: 'off'
      card:
        type: todo-list
        entity: todo.chores_weekly_b
        title: Weekly Chore list B
  - card:
      type: todo-list
      entity: todo.chores_monthly
      title: Monthly chores
    attributes:
      label: M

Additional context

No response

ildar170975 commented 7 months ago

If a conditional card is not shown - the tab which contains it is shown anyway. Do you consider this behaviour as a bug?

Also, check these - https://github.com/kinghat/tabbed-card/discussions/49, https://github.com/kinghat/tabbed-card/discussions/26, https://github.com/kinghat/tabbed-card/issues/60