Open Suggorath opened 2 years ago
I found maybe where is problem, but not find solution. I am using lovelace in yaml mode and now have two dashboards. First is default by HA ui-lovelace.yaml and used for testing purpose and second my custom created. In ui-lovelace.yaml I has this code inside and nothing more:
title: My Awesome Home
views:
- title: Example
cards:
- type: "custom:button-card"
entity: sensor.plug_computer_energy_power
extra_styles: >
[[[
return `ha-icon#icon:host {color: blue !important;}`;
]]]
As you can see, there is extra_styles with code which is inserted to every even is not declared in button-card as you can see in images. Doesn't matter what code is inside extra_styles, every time is inserted when i do this steps.
+1
Checklist
Describe the bug The extra_styles code is ignored from button-card template yaml and there is added unknow code
ha-icon#icon:host { color: blue important; }
even for cards they don't have extra_styles. After few tries clearing cache in browser works again and part is again filled with right code. But when again, try re-logging in to HA or clear browser cache or close browser and re-open then problem occurs again.Version of the card Version: 3.4.2
Other (please complete the following information):
To Reproduce This is the configuration I used:
Screenshots