Skip to content

Commit 12fae1c

Browse files
committed
Render top-level dicts to expandable sections
1 parent e75b36e commit 12fae1c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hassio/src/addon-view/config/hassio-addon-config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ class HassioAddonConfig extends LitElement {
104104
}
105105

106106
private _convertSchemaElement(entry: any): HaFormSchema {
107+
if (entry.type === "schema" && !entry.multiple) {
108+
return {
109+
name: entry.name,
110+
type: "expandable",
111+
required: entry.required,
112+
schema: this._convertSchemaElements(entry.schema),
113+
};
114+
}
107115
const selector = this._convertSchemaElementToSelector(entry, false);
108116
if (selector) {
109117
return {

0 commit comments

Comments
 (0)