Icon color not changing

Seems like i can’t get icon_color get to work.
Color must be yellow, but it isn’t changing.
It does say the rgb color, but what is wrong?

Running on 0.82.0.

image

sensor.hass_update_available:
  templates:
    _stateDisplay: "if (state === 'No') return 'No update available'; else return 'Update available';"
    icon: "if (state === 'No') return 'mdi:check'; else return 'mdi:cellphone-arrow-down';"
    rgb_color: "if (state === 'No') return [253, 216, 53]; else return [68, 115, 158];"

use icon_color.
this will only work if you have custom-ui installed.

  templates:
    icon: >
      if (state === 'on') return 'mdi:wifi';
      return 'mdi:wifi-off';
    icon_color: >
      if (state === 'on') return 'rgb(251, 210, 41)';
      return 'rgb(54, 95, 140)';

you can use any Css color. https://github.com/andrey-git/home-assistant-custom-ui/blob/master/docs/features.md#icon-color

That did the trick.
I was missing some lines.

frontend:  
  extra_html_url:
    - /local/custom_ui/state-card-custom-ui.html
  extra_html_url_es5:
    - /local/custom_ui/state-card-custom-ui-es5.html

customizer:
  custom_ui: local