mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Force YAML if schema has multiple (#8298)
This commit is contained in:
parent
3d4a0b02e5
commit
a9192ae2e1
@ -109,7 +109,8 @@ class HassioAddonConfig extends LitElement {
|
||||
protected firstUpdated(changedProps) {
|
||||
super.firstUpdated(changedProps);
|
||||
this._canShowSchema = !this.addon.schema.find(
|
||||
(entry) => !SUPPORTED_UI_TYPES.includes(entry.type)
|
||||
// @ts-ignore
|
||||
(entry) => !SUPPORTED_UI_TYPES.includes(entry.type) || entry.multiple
|
||||
);
|
||||
this._yamlMode = !this._canShowSchema;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user