thomasloven / lovelace-card-mod

🔹 Add CSS styles to (almost) any lovelace card
MIT License
1.04k stars 169 forks source link

Outdated signature on Home Assistant entity card #377

Open dhoeben opened 1 month ago

dhoeben commented 1 month ago

My Home Assistant version: 2024.5.4

My lovelace configuration method (GUI or yaml): yaml

What I am doing: Using a Home Assistant standard card

What I expected to happen: To not get this error

What happened instead: I got this error

Minimal steps to reproduce:

# The least amount of code possible to reproduce my error
  - type: entities
    card_mod:
      style: |
        ha-card {
          --switch-checked-track-color: rgb(var(--yellow));
        }
        #states div {
          margin: 0px 0px;
        }
    entities:
    - entity: light.boven
      state_color: false

# End of code

Error messages from the browser console:


You are using a custom card which relies on card-mod, and uses an outdated signature for applyToElement.
card-mod.js:1 The outdated signature will be removed at some point in the future. Hopefully the developer of your card will have updated their card by then.
card-mod.js:1 The card used card-mod to apply styles here: 
<hui-toggle-entity-row class=​"undefined">​</hui-toggle-entity-row>​

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

ildar170975 commented 1 month ago

2024.5.3 see no errors:

изображение