kinghat / tabbed-card

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

No tab titles #98

Closed ricardoboss closed 1 year ago

ricardoboss commented 1 year ago

I have the macos-ui-theme installed (not sure if that's the problem) and the tab titles are missing:

image

This might be because there was no label rendered in HTML:

image

This is the source:

type: custom:tabbed-card
tabs:
  - label: Täglich
    card:
      type: custom:weather-card
      number_of_forecasts: '5'
      current: true
      details: false
      forecast: true
      hourly_forecast: false
      entity: weather.bremen_daily
  - label: Stündlich
    card:
      type: custom:hourly-weather
      entity: weather.bremen_hourly
      num_segments: '8'
      icons: true
      label_spacing: '2'
      name: Stündliches Wetter
      show_precipitation_amounts: true
      offset: '0'
      show_precipitation_probability: true
ildar170975 commented 1 year ago

Check docs for a correct placement of the “label” option.

ricardoboss commented 1 year ago

Ah thanks!

This is the fixed code:

type: custom:tabbed-card
tabs:
  - attributes:
      label: Stündlich
    card:
      type: abc
  - attributes:
      label: Täglich
    card:
      type: xyz