flixlix / power-flow-card-plus

A power distribution card inspired by the official Energy Distribution card for Home Assistant
501 stars 59 forks source link

In the Fossil Fuel section the "Color of Value" toggle switch of the main entity overrides the secondary. #575

Closed Ndrinta closed 2 months ago

Ndrinta commented 2 months ago

Describe the bug In the Fossil Fuel section the "Color of Value" toggle switch of the main entity overrides the secondary. Seems to be OK elsewhere but not fully tested.

To Reproduce Set the "Color of Value" toggle to true for main entity and to false for secondary.

  fossil_fuel_percentage:
    color_icon: false
    entity: sensor.grid_non_fossil_fuel_percentage
    secondary_info:
      entity: sensor.grid_non_fossil_fuel_percentage
      unit_of_measurement: '%'
      display_zero: false
      unit_white_space: false
      color_value: false # <- Secondary Entity Color: FALSE
    display_zero: true
    color_value: true # <- Main Entity Color: TRUE
    unit_white_space: true

Expected behavior Apply the color to only main entity and not (black) secondary.

Screenshots image

Browser Console Errors N/A

Desktop (please complete the following information): Core 2024.4.3 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.2

Smartphone (please complete the following information): N/A

flixlix commented 2 months ago

fixed in #589