Open CybDis opened 3 months ago
Can you share the yaml?
sure:
type: vertical-stack cards:
Hmm don't think the problem lies within the editor code tbh. A lot of custom cards and a few native HA cards won't display correctly in horizontal-stack or vertical-stack in editor.
Have you tried it without the horizontal-stack?
It shows the same behavior in pure vertical stack,
and the same in pure horizontal stack.
when using it as single card on the dashboard, there cannot be a mix-up so it works, like it works for the 1st card in every stack.
Ok I will take a look at it. But won't be very soon I'm afraid
not sure if it has something to do with it, but in the console I get following error:
17:31:29.481 -- [WARNING] The main 'lit-element' module entrypoint is deprecated. Please update your imports to use the 'lit' package: 'lit' and 'lit/decorators.ts' or import from 'lit-element/lit-element.ts'. See https://lit.dev/msg/deprecated-import-path for more information. -- on line 331 of https://192.168.1.6:8123/hacsfiles/lovelace-flower-card-mod/flower-card.js?hacstag=779356749202445
The EditorForm extends LitElement
That's it - I forked and updated from 'lit-element' to 'lit' and everything now works again
see -> https://github.com/marcokreeft87/ha-editor-formbuilder/compare/master...CybDis:ha-editor-formbuilder:master
Nice! I've pulled the changes. Try it again plz
Oh the build failed. Let me check that tomorrow morning
ok.
remember to undo my readme.md changes
Apparently I forgot how the auto publish worked haha. But its published now.
I'm using a project using your editor: https://github.com/CybDis/lovelace-flower-card-mod
When using the lovelace-flower-card in a vertical-/horizontal stack setting, it does not update the config corresponsing the selected card. It always shows first card (
Flammenblume 1
) instead of the selected card (Tomate
):When changing a setting (checking a checkbox) it updates the displayed entities:
![image](https://github.com/marcokreeft87/ha-editor-formbuilder/assets/10251750/d4998e82-cf60-4038-87d9-e9e6f32b15aa)
So I think some update-trigger is missing to relead the config.
Would you have a look into it?