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

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

Open
jeffbeale opened this issue Dec 3, 2023 · 1 comment
Open

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

jeffbeale opened this issue Dec 3, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jeffbeale
Copy link

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

@jeffbeale jeffbeale added the bug Something isn't working label Dec 3, 2023
@ildar170975
Copy link

ildar170975 commented Dec 3, 2023

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 - #49, #26, #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants