UI icon indicating copy to clipboard operation
UI copied to clipboard

On unavailability of entity, alert icon is duplicated in `card_graph`

Open mpeterson opened this issue 2 years ago • 1 comments

Describe the bug Whenever there is an unavailable entity the framework adds an alert icon. But starting with 1.0.3 this alert icon gets repeated twice, at least for card_graph

To Reproduce Create a card_graph with an unavailable entity.

As taken from the docs, just make sure that the sensor is unavailable (vs a non-existant one):

  - type: 'custom:button-card'
    template: card_graph
    entity: sensor.livingroom_temperature
    variables:
      ulm_card_graph_color: "var(--google-blue)"
      ulm_card_graph_name: Temperature Livingroom
      ulm_card_graph_entity: sensor.livingroom_temperature

Expected behavior One alert icon instead of two.

Screenshots image

Additional context Add any other context about the problem here.

mpeterson avatar Jul 23 '22 16:07 mpeterson

Confirmed that the PR fixes the issue.

mpeterson avatar Jul 27 '22 15:07 mpeterson