Linecolor on core card sensor doesnt error?

not aware of this thread: Lovelace sensor graph lin color - 0.84.0

I noticed today, trying to change the color of my sensor line using this config (for ages…)

  - type: sensor
    name: Opbrengst Zonnepanelen
    entity: sensor.zp_actuele_opbrengst
    graph: line
    detail: 2
    height: 75
    line_color: '#3498db'

it doesn’t work. Which reading the above post, should be expected.

It doesn’t throw an error though, isn’t that supposed to be a bug…?

Custom mini-graph-card is not the same as the sensor card

Sure, that’s why I didn’t mention mini-graph-card…

ah missed that question. Lovelace doesn’t throw errors with unknown keys. Only warnings in the UI.

we get the incidental red card, with error indications, some more useful than others…
it should be rather easy to throw an error on using anything but the allowed options/keys I would think.

Just like when one uses an unknown option in a yaml configuration.

Then you wouldn’t be able to do things with card mod like adding style.

ha, guess you have a point there. but, since card_mod is such a default option nowadays, that should of course be excluded :wink: