diff --git a/src/panels/lovelace/editor/hui-element-editor.ts b/src/panels/lovelace/editor/hui-element-editor.ts index 4f0483c659..0f08a36f94 100644 --- a/src/panels/lovelace/editor/hui-element-editor.ts +++ b/src/panels/lovelace/editor/hui-element-editor.ts @@ -271,6 +271,11 @@ export abstract class HuiElementEditor extends LitElement { private _handleUIConfigChanged(ev: UIConfigChangedEvent) { ev.stopPropagation(); const config = ev.detail.config; + Object.keys(config).forEach((key) => { + if (config[key] === undefined) { + delete config[key]; + } + }); this.value = config as unknown as T; }