Guess this was your issue (better to ask in community first before registering an issue).
First, some general remarks:
- You can use “config.entity” variable here to make a code better:
- entity: sensor.192_168_178_23_amd_gpu_gpu_amd0_prozessorauslastung
card_mod:
style: |
:host {
{% if states('sensor.192_168_178_23_amd_gpu_gpu_amd0_prozessorauslastung') ...
→
- entity: sensor.192_168_178_23_amd_gpu_gpu_amd0_prozessorauslastung
card_mod:
style: |
:host {
{% if states(config.entity) ...
- You got
if ...
...
elif ...
...
w/o a default “else” path - which in some cases may give you bad results.
As for “How it gets changed” - UI editor processes long lines in such way.
In your case you have “|” replaced by “>”.
Read this.
In my experience, this conversion cannot break card-mod code - i.e. I never observed an issue “code was working OK before conversion → conversion → code stopped working”. If you see this - then most probably your code is wrong.
BTW, I never use “–card-mod-icon-color” variable & prefer more robust ways.