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: Card not updating in preview #50

Closed ITensEI closed 1 year ago

ITensEI commented 1 year ago

Trying to set up the tabbed card and for the life of me couldn't figure out why it's not displaying name or icon in the tab

image

I re-downloaded the card through HACS which got it to show up, but now I'm noticing that every time I make changes to the card the preview doesn't update until I save it

kinghat commented 1 year ago

can you please paste in your exact configuration so i can reproduce locally?

ITensEI commented 1 year ago

I was trying with just an example you see in the screenshot. Currently I left it at this for now:

type: custom:tabbed-card
tabs:
  - card:
      type: horizontal-stack
      cards:
        - type: custom:mushroom-light-card
          entity: light.living_room
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
          collapsible_controls: true
          hold_action:
            action: more-info
          layout: vertical
        - type: custom:mushroom-light-card
          entity: light.bedroom
          layout: vertical
          use_light_color: true
          show_brightness_control: true
          show_color_temp_control: false
          show_color_control: true
    show_name: true
    show_icon: true
    attributes:
      label: Lights
      icon: mdi:lightbulb-group
  - card:
      type: entity
      entity: sensor.moon_phase

But any config does the same for me. I've been noticing some weird glitches with Chrome these last few days where the cards seemingly vanish until I leave the page and return. Not even refresh fixes it. A working card would just fully vanish with seemingly no errors. Now as I'm typing this I check the preview, then back to text and half the text is blank image I feel like this might be a browser issue

kinghat commented 1 year ago

I was trying with just an example you see in the screenshot.

well in that config, i dont believe the properties show_* are part of the entity card. not sure why you dont see the :fire: icons, though. i would test in a different browser or system to make sure before digging deeper. keep me posted as if the issue is left unresolved ill end up closing it and chalk it up to a local issue.

kinghat commented 1 year ago

if this is still an issue for you, you can reopen providing more information.