File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
hassio/src/addon-view/config Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import { haStyle } from "../../../../src/resources/styles";
3333import type { HomeAssistant } from "../../../../src/types" ;
3434import { suggestAddonRestart } from "../../dialogs/suggestAddonRestart" ;
3535import { hassioStyle } from "../../resources/hassio-style" ;
36- import type { Selector } from "../../../../src/data/selector" ;
36+ import type { ObjectSelector , Selector } from "../../../../src/data/selector" ;
3737
3838const SUPPORTED_UI_TYPES = [
3939 "string" ,
@@ -139,7 +139,19 @@ class HassioAddonConfig extends LitElement {
139139 return { boolean : { } } ;
140140 }
141141 if ( entry . type === "schema" ) {
142- return { object : { } } ;
142+ const fields : NonNullable < ObjectSelector [ "object" ] > [ "fields" ] = { } ;
143+ for ( const child_entry of entry . schema ) {
144+ fields [ child_entry . name ] = {
145+ required : child_entry . required ,
146+ selector : this . _convertSchemaElementToSelector ( child_entry , true ) ! ,
147+ } ;
148+ }
149+ return {
150+ object : {
151+ multiple : entry . multiple ,
152+ fields,
153+ } ,
154+ } ;
143155 }
144156 if ( entry . type === "float" || entry . type === "integer" ) {
145157 return {
You can’t perform that action at this time.
0 commit comments