thomasloven / lovelace-card-mod

đŸ”¹ Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

Card-mod 3.4.0/1 not working #345

Closed brinkgit closed 5 months ago

brinkgit commented 5 months ago

My Home Assistant version: HA on oracle VM; Core 2024.1.2; Supervisor 2023.12.0; Operating System 11.3; Frontend 20240104.0 But also with: Core 2023.11.2; Supervisor 2023.12.0; Operating System 11.1; Frontend 20231030.2 My lovelace configuration method (GUI or yaml): yaml

What I am doing: use card-mod as I did in card-mod 3.3.1. Try to make some text red (and loads of others settings). Restarted several times

What I expected to happen: text turns red

What happened instead: nothing

Minimal steps to reproduce:

type: entities
entities:
  - entity: sun.sun
card_mod:
  style: |
    ha-card {
      color: red;
    }

Tried with or without:

lovelace:
  resources:
    - url: /local/room-card.js
      type: module

Tried both:

/hacsfiles/lovelace-card-mod/card-mod.js?hacstag=190927524331

and

/local/card-mod.js

in resources: nothing helped

So I use the old version by now.

Error messages from the browser console: nothing


By putting an X in the boxes ([]) below, I indicate that I: