-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Bug] When using UI editor, the yaml code gets altered #223
Comments
There is nothing incorrect here. It just adds the default values and expands entities into the long form format. |
Thank you for taking the time to respond :) Why does it add the default code even though it is not needed? I am not aware of any other card doing this. In addition, the placement is a bit strange 😄 And the long format is... long 😄 and makes it much more difficult to read and adjust. It would be a cool enhancement especially for people new to the card. I think being able to play with settings via the UI makes it easier to test them. But since it changes the code the user has written, it kind of makes it less attractive to use the UI. Of course just my opinion :-) |
I noticed that the indentation is not correct when parts are added automatically. The indentation seems to be 4 spaces instead of 2. |
Checklist:
Release with the issue:
3.2.4
Last working release (if known):
Browser and Operating System:
Chrome, Windows 11
Description of problem:
When creating a card using yaml editor, the card seems to work fine.
But if after doing all the manual work, you change a setting (or just play with a setting in the UI) a whole bunch of code is added to the yaml code that is partially incorrect.
E.g., things like the fake CO2 sensor are force added:
and all the entities of the final child are converted from a nice list to a bunch of entities with no children:
from
to
These changes are partially incorrect (adding fake sensor) and in part simply mess up the cleanliness of the code by adding lots of redundant lines. :(
Would it be possible to disable these adjustments and instead only write the specific lines of codes of the options that are adjusted?
E.g. when changing the height, only that line is needed. The rest of the code does not need to be touched :)
Thank you for your consideration (and cool card, of course!)
Alex
Javascript errors shown in the web inspector (if applicable):
Additional information:
The text was updated successfully, but these errors were encountered: