mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Dont mark blueprint fields with defaults as required (#16785)
This commit is contained in:
parent
897f118547
commit
b6ed8acd02
@ -138,11 +138,12 @@ export class HaBlueprintAutomationEditor extends LitElement {
|
||||
this.config.use_blueprint.input[key]) ??
|
||||
value?.default}
|
||||
.disabled=${this.disabled}
|
||||
.required=${value?.default === undefined}
|
||||
@value-changed=${this._inputChanged}
|
||||
></ha-selector>`
|
||||
: html`<ha-textfield
|
||||
.key=${key}
|
||||
required
|
||||
.required=${value?.default === undefined}
|
||||
.value=${(this.config.use_blueprint.input &&
|
||||
this.config.use_blueprint.input[key]) ??
|
||||
value?.default}
|
||||
|
@ -114,6 +114,7 @@ export class HaBlueprintScriptEditor extends LitElement {
|
||||
.selector=${value.selector}
|
||||
.key=${key}
|
||||
.disabled=${this.disabled}
|
||||
.required=${value?.default === undefined}
|
||||
.value=${(this.config.use_blueprint.input &&
|
||||
this.config.use_blueprint.input[key]) ??
|
||||
value?.default}
|
||||
@ -121,7 +122,7 @@ export class HaBlueprintScriptEditor extends LitElement {
|
||||
></ha-selector>`
|
||||
: html`<ha-textfield
|
||||
.key=${key}
|
||||
required
|
||||
.required=${value?.default === undefined}
|
||||
.disabled=${this.disabled}
|
||||
.value=${(this.config.use_blueprint.input &&
|
||||
this.config.use_blueprint.input[key]) ??
|
||||
|
Loading…
x
Reference in New Issue
Block a user