Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA Editor looses card-mod code #157

Closed
4 tasks done
ildar170975 opened this issue Nov 13, 2021 · 1 comment
Closed
4 tasks done

HA Editor looses card-mod code #157

ildar170975 opened this issue Nov 13, 2021 · 1 comment

Comments

@ildar170975
Copy link
Contributor

My Home Assistant version: 2021.11.2

My lovelace configuration method (GUI or yaml): yaml/GUI

Steps to reproduce:

  1. 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;
        }
  1. The screen is:
    image

  2. Save the code, the screen is:
    image

  3. Open the Editor again, the screen is:
    image

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:

  • Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).

  • Have made sure I am using the latest version of the plugin.

  • Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.

  • 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.

@ildar170975 ildar170975 changed the title HA Editor looses crad-mod code HA Editor looses card-mod code Nov 13, 2021
@ildar170975
Copy link
Contributor Author

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:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant