home-assistant / frontend

:lollipop: Frontend for Home Assistant
https://demo.home-assistant.io
Other
4.02k stars 2.75k forks source link

Editor removes custom config of first shown entity #19327

Closed philrich closed 6 months ago

philrich commented 9 months ago

Checklist

Describe the issue you are experiencing

Since some days I have a problem with the Home Assistant Editor. Whenever I edit a Lovelace card, the editor removes all custom config of the first shown entity. Home Assistant is installed via HAOS on a Raspi 4. This setup was workung flawlessly in the past. I have a second Home Assistant Instance running on a Raspi Zero W which does not show this behaviour. Both Instances are running on the latest Home Assistant Version (2024.1.2). I also tried with Safe Mode but then nearly none of my Dashboards are shown, because I make extensive use of card_mod and layout-card.

This is an example card showing the removed card_mod modifications when calling the editor: image

This is nearly the same card on my second HA Instance, where everything works as expected: image

I removed all custom Integrations and Frontend Components I don't need but it didn't fix the Problem. As of now I am using: card-tools, card-mod, auto-entities, layout-card, mushroom, horizon card, kiosk mode, vertical-stack-in-card, apexcharts-card, energy-overview-card, comfortable-environment-card

Describe the behavior you expected

The frontend editor should not remove custom config of cards

Steps to reproduce the issue

Editor removes custom config of first entity on every card it is called on

What version of Home Assistant Core has the issue?

2024.1.2

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Google Chrome Version 120.0.6099.199 (Official Build) (64-bit) [also tested on iOS Companion App and Firefox 115.6.0esr]

Which operating system are you using to run this browser?

Debian 12

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

karwosts commented 9 months ago

Is this consistently reproducible, and if so, can you provide clear steps to reproduce it, including exact yaml of the entire stack that shows this?

ildar170975 commented 9 months ago

(could be) Not a Frontend issue. https://github.com/thomasloven/lovelace-card-mod/issues/337

robinshlee commented 9 months ago

This is my observation. I had added a card_mod style that made that background of the card blue, saved it and it displayed the card with the blue background as expected. However, when I went into the editor, the blue background disappeared and switching to the YAML editor mode showed that the custom codes had vanished. When I aborted the editor (cancel and not save), the card once again displayed the blue background. So I think the mods were saved earlier and was effective, but will be wiped clean if you try to edit them again.

ildar170975 commented 9 months ago

This behaviour was described in the link above, even with a video.

philrich commented 9 months ago

Indeed, it looks like the Issue @ildar170975 linked to. card_mod is the only custom config on cards, I use.

github-actions[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.