Closed ildar170975 closed 2 years ago
My Home Assistant version: 2021.11.2
My lovelace configuration method (GUI or yaml): yaml/GUI
Steps to reproduce:
Create a new card via UI, copy/paste this code into Editor:
type: glance entities: - entity: sun.sun - entity: sun.sun icon: mdi:fan card_mod: style: | state-badge { color: orange; }
The screen is:
Save the code, the screen is:
Open the Editor again, the screen is:
The card_mod code is not displayed. If you press the “Save” button, the code will probably be saved w/o card_mod.
Error messages from the browser console: none
By putting an X in the boxes ([]) below, I indicate that I:
[x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[x] Have made sure I am using the latest version of the plugin.
[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
This trick fixed the issue: https://community.home-assistant.io/t/card-mod-add-css-styles-to-any-lovelace-card/120744/2293?u=ildar_gabdullin
Now the card-mod code is visible in the Editor:
My Home Assistant version: 2021.11.2
My lovelace configuration method (GUI or yaml): yaml/GUI
Steps to reproduce:
Create a new card via UI, copy/paste this code into Editor:
The screen is:![image](https://user-images.githubusercontent.com/71872483/141655435-ca27a0bd-fbf6-4aae-9c5d-dcf0863786d6.png)
Save the code, the screen is:![image](https://user-images.githubusercontent.com/71872483/141655448-257afa72-67b2-48b3-a3f3-f1b4793b6a24.png)
Open the Editor again, the screen is:![image](https://user-images.githubusercontent.com/71872483/141655458-09f9f5ec-5704-4901-8e31-94211f357606.png)
The card_mod code is not displayed. If you press the “Save” button, the code will probably be saved w/o card_mod.
Error messages from the browser console: none
By putting an X in the boxes ([]) below, I indicate that I:
[x] Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
[x] Have made sure I am using the latest version of the plugin.
[x] Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
[x] Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.