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

Comments and commented parts of code are automatic deleted in Frontend dashboard "code editor" #24532

Open
4 tasks done
ERBN19 opened this issue Mar 6, 2025 · 1 comment
Open
4 tasks done

Comments

@ERBN19
Copy link

ERBN19 commented Mar 6, 2025

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

Comments and commented parts of code in the frontend "code editor" are automatic deleted when I save the yaml code editor.

Describe the behavior you expected

Comments and commented parts of code in the frontend "code editor" are automatic deleted when I save the yaml code editor.

Steps to reproduce the issue

As a example I made a simple statistics line graph in the frontend dashboard.

Image

Now I want to manually edit the yaml code with the "code editor".

Image

In this example there a no layout-settings used. But when I am changing layout or something and I want to check the behavior of a setting I will comment # the lines. Or when there are multiple entities in a graph-card I wil sometimes make a note in the yaml.

So now I placed a comment in the yaml, and commented the min and mean of the card.

Image

Now I used the "opslaan" button and then edit the card again. Now al the commented parts and notes are gone.

Image

Now I used the statistics card as example, but this also happening with my plotly graph cards.

What version of Home Assistant Core has the issue?

2025.3.0

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue?

No response

Which operating system are you using to run this browser?

No response

State of relevant entities

Problem-relevant frontend configuration

Javascript errors shown in your browser console/inspector

Additional information

No response

@ildar170975
Copy link
Contributor

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

2 participants