home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
3.95k stars 2.67k forks source link

climate entity causes odd colorizing on attributes in entities card #19537

Open Mariusthvdb opened 7 months ago

Mariusthvdb commented 7 months ago

Checklist

Describe the issue you are experiencing

these attributes in an entities card are colorized, which is undesired (probably can call it a bug)

      - type: attribute
        entity: climate.voorkamer
        attribute: min_temp
        name: Min temp
        icon: mdi:thermometer-minus
        suffix: °C
      - type: attribute
        entity: climate.voorkamer
        attribute: max_temp
        name: Max temp
        icon: mdi:thermometer-plus
        suffix: °C
Scherm­afbeelding 2024-01-26 om 22 26 57

Describe the behavior you expected

Do NOT colorize the attributes derived from that entity

Steps to reproduce the issue

  1. use yaml and heat
  2. ...

What version of Home Assistant Core has the issue?

2024.1.4

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

any

Which operating system are you using to run this browser?

Sonoma 14.2.1

State of relevant entities

No response

Problem-relevant frontend configuration

see above for the issue config.

this is what we now need to do to fix it in Dashboard (more-info remains silly btw, because showing the main entity, and not the attributes..)

      - type: attribute
        entity: climate.voorkamer
        attribute: min_temp
        name: Min temp
        icon: mdi:thermometer-minus
        card_mod:
          style: |
            :host {
              --card-mod-icon-color: blue;
            }

and maroon for the max_temp entity..

Scherm­afbeelding 2024-01-26 om 22 53 44

Javascript errors shown in your browser console/inspector

No errors

Additional information

No additional state-color has been set in a theme, so the default should apply on the main entity alright (using state_color: true) but Not on the attributes

state_color: true is set on the main entities card, which is required for many other entities in the card. Please have these (any for that matter) attributes not follow that coloration.

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Mariusthvdb commented 4 months ago

keep?

github-actions[bot] commented 1 month ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Mariusthvdb commented 1 month ago

keep