Mushroom template chip background color

Hi
Until now i have used card-mod to control background color of a mushroom template chip like this:

 card_mod:
      style: |
        ha-card {
            {% if states('switch.vvb') == 'on' %}
               --chip-background: rgba(0, 255, 0, 0.2);
            {%- else -%}
               --chip-background: rgba(255, 0, 0, 0.2);
            {%- endif %}
        }

But this wont work after updating to card-mod 3…

Anyone have a solution to this?

+1

Same issue

Are you using car-mod version 3.5.0?

If so that version has been pulled.

I tested the posted code and it works on ver 3.4.4