Can't get card-mod to work on anything

No matter how simple a change I try to make I can’t get anything to work.

For example, changing the color of the Tile title:

type: tile
entity: input_text.devices
card-mod:
  style: |
    ha-tile-info {
      color: blue
    }
tap_action:
  action: none
icon_tap_action:
  action: none

I end up with an empty card-mod element

and errors in my console

Card-mod r: At path: card-mod -- Expected a value of type 'never', but received: '[object Object]'

I’ve tried adding “debug: true” and I added “extra_module_url” to my configuration.yaml and I see no difference or additional info

it’s card_mod and not card-mod I believe.

Edwin is correct, but your test mod isn’t going to produce blue text

test this

type: tile
entity: input_text.devices
card_mod:
  style: |
   ha-card {
    --primary-text-color: blue !important;
    }
tap_action:
  action: none
icon_tap_action:
  action: none

omg

Don’t read docs with only 3hrs of sleep

Thanks

1 Like