Show default value for selector-less blueprint inputs. (#8163)

This commit is contained in:
Thomas Lovén 2021-01-15 14:30:27 +01:00 committed by GitHub
parent 142f26add1
commit 16c914b139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -175,8 +175,9 @@ export class HaBlueprintAutomationEditor extends LitElement {
: html`<paper-input : html`<paper-input
.key=${key} .key=${key}
required required
.value=${this.config.use_blueprint.input && .value=${(this.config.use_blueprint.input &&
this.config.use_blueprint.input[key]} this.config.use_blueprint.input[key]) ??
value?.default}
@value-changed=${this._inputChanged} @value-changed=${this._inputChanged}
no-label-float no-label-float
></paper-input>`} ></paper-input>`}