Bubble-Card icon indicating copy to clipboard operation
Bubble-Card copied to clipboard

Multiple Attribute seperator is persistant

Open oerix opened this issue 10 months ago • 12 comments

Describe the bug
When you select multiple attribute (advanced example) under the new modules section, the separator remains when there is no state (see pic).

To Reproduce
Steps to reproduce the behavior:

  1. Choose Button Card
  2. Under Modules > Advanced card > Enable this card
  3. Select 2 or more entities/attributes.
  4. See error

Expected behavior
The separator should disappear when there is no state attribute.

Screenshots

Image

Informations (please complete the following information):

  • OS: iOS 18.3/macOS 15
  • Browser/App: Firefox/Safari
  • Bubble Card version: v2.5.0-beta.5
  • Home Assistant version: 2025.2.4

oerix avatar Feb 16 '25 15:02 oerix

Hi! I'm still unsure of how you're able to have this issue, but this is maybe fixed in the latest beta 🙂

Clooos avatar Feb 20 '25 15:02 Clooos

Hi! I'm still unsure of how you're able to have this issue, but this is maybe fixed in the latest beta 🙂

Unfortunately, issue still persists in latest beta (v2.5.0-beta.6) :( It occurs on all card types. Here's the yaml, if it's any help:

card_type: media-player
icon: ""
card_layout: large
entity: media_player.living_room_sky_q
show_state: true
hide:
  play_pause_button: false
  volume_button: true
  next_button: true
  previous_button: true
  power_button: true
show_attribute: true
attribute: media_series_title
sub_button:
  - entity: sensor.living_room_sky_q_schedule
    name: Scheduled
    state_background: true
    show_background: false
show_icon: true
force_icon: false
show_last_changed: false
name: Living TV
cover_background: true
styles: |2-
    .bubble-sub-button-2 {
      display: ${hass.states['sensor.living_room_sky_q_schedule'].state === 'scheduled' ? '' : 'none'} !important;
    }
    .bubble-sub-button-2 > ha-icon {
      color: ${hass.states['sensor.living_room_sky_q_schedule'].state === 'recording' ? 'red' : 'none'} !important;
    }
icon_container_color:
  "0": 240
  "1": 191
  "2": 188
get_state_attribute:
  - entity: media_player.living_room_sky_q
    attribute: media_series_title
  - entity: media_player.living_room_sky_q
    attribute: media_channel
modules:
  - get_state_attribute

oerix avatar Feb 20 '25 15:02 oerix

So it happens only when the attribute doesn't provide any infos? But when there are values, it works as expected?

I'm still unsure to understand.

Clooos avatar Feb 20 '25 17:02 Clooos

So it happens only when the attribute doesn't provide any infos? But when there are values, it works as expected?

I'm still unsure to understand.

Yes that's right. Are you not able to reproduce it?

oerix avatar Feb 20 '25 17:02 oerix

I think that I don't have any entity that provide empty attributes, but I might be wrong.

But this makes sense now, I will fix that for the next release 👌

Clooos avatar Feb 20 '25 18:02 Clooos

I think that I don't have any entity that provide empty attributes, but I might be wrong.

But this makes sense now, I will fix that for the next release 👌

Could this be fixed for the next beta please? Thanks 🙂

oerix avatar Mar 19 '25 21:03 oerix

+1. Same issue here in v2.5.0beta.8.

ncodee avatar Mar 21 '25 11:03 ncodee

CC: @Clooos

"I’ve replaced the file, but I can’t tell for sure, as the entities are still visible. It should automatically hide all entities when device is offline, but instead now it’s just showing as ‘Unknown • Unknown’."

oerix avatar Apr 06 '25 10:04 oerix

Any update on this please @Clooos? Seems like a simple fix, thanks.

Image

oerix avatar Apr 26 '25 09:04 oerix

Hi! I just updated the module, you should see the update after a refresh of the module store 🤞

Clooos avatar Apr 27 '25 11:04 Clooos

Hi! I just updated the module, you should see the update after a refresh of the module store 🤞

It's finally fixed, thank you such much! :)

oerix avatar Apr 27 '25 20:04 oerix

You're welcome! 😄

Clooos avatar Apr 28 '25 02:04 Clooos