kinghat / tabbed-card

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

[Bug]: Tabs not showing until editing the dashboard then clicking done #146

Closed i00 closed 7 months ago

i00 commented 7 months ago

Description

In 0.4.0-alpha the tabs don't show when you initially load the page. When you edit the dashboard then click save it all shows

Environment

- OS: Linux
- Browser: Chrome
- Home Assistant Version: 2024.4.4     
- Tabbed Card Version: 0.4.0-alpha

Reproducible configuration

type: custom:tabbed-card
tabs:
  - card:
      type: history-graph
      entities:
        - sun.sun
    attributes:
      label: First
  - card:
      show_current: true
      show_forecast: true
      type: weather-forecast
      entity: weather.forecast_home
      forecast_type: daily
    attributes:
      label: Second

Additional context

No response

i00 commented 7 months ago

DW - fixed in alpha.2

adalovebass commented 4 months ago

If I understand the original bug correctly, I am still having this issue on alpha.2.

To elaborate on what I'm experiencing, the "live card preview" to the right of the code editing area does not update at all, until the changes are saved and the editor is re-opened. All my other cards have previews that update with any change to the content, so I feel confident this is specific to tabbed-card.

I am using the same code example as the original reporter. For comparison, creating a new weather-forecast card that does not use tabbed-card will show updates from the code editor immediately. For example, changing show_forecast from true to false will cause the card preview to update in real time.

Environment:

- OS: Windows 10
- Browser: Chrome 126.0.6478.128
- Home Assistant Version: 2024.7.3
- Tabbed Card Version: 0.4.0-alpha.2

Thank you!

Edit: I should clarify that this happens with any child cards, not just weather-forecast.