-
- ${this._blueprints
- ? Object.keys(this._blueprints).length
- ? html`
-
- `
- : this.hass.localize(
- "ui.panel.config.automation.editor.blueprint.no_blueprints"
- )
- : html``}
-
- ${this.hass.localize(
- "ui.panel.config.automation.editor.blueprint.manage_blueprints"
- )}
-
-
+
+ ${this._blueprints
+ ? Object.keys(this._blueprints).length
+ ? html`
+
+ `
+ : this.hass.localize(
+ "ui.panel.config.automation.editor.blueprint.no_blueprints"
+ )
+ : html``}
+
+ ${this.hass.localize(
+ "ui.panel.config.automation.editor.blueprint.manage_blueprints"
+ )}
+
+
- ${this.config.use_blueprint.path
- ? blueprint && "error" in blueprint
- ? html`
- There is an error in this Blueprint: ${blueprint.error}
-
`
- : html`${blueprint?.metadata.description
- ? html`
${blueprint.metadata.description}
`
- : ""}
- ${blueprint?.metadata?.input &&
- Object.keys(blueprint.metadata.input).length
- ? html`
- ${this.hass.localize(
- "ui.panel.config.automation.editor.blueprint.inputs"
- )}
-
- ${Object.entries(blueprint.metadata.input).map(
- ([key, value]) =>
- html`
- ${value?.description}
- ${value?.selector
- ? html`
`
- : html`
`}
-
`
- )}`
- : this.hass.localize(
- "ui.panel.config.automation.editor.blueprint.no_inputs"
+ ${this.config.use_blueprint.path
+ ? blueprint && "error" in blueprint
+ ? html`
+ There is an error in this Blueprint: ${blueprint.error}
+
`
+ : html`${blueprint?.metadata.description
+ ? html`
${blueprint.metadata.description}
`
+ : ""}
+ ${blueprint?.metadata?.input &&
+ Object.keys(blueprint.metadata.input).length
+ ? html`
+ ${this.hass.localize(
+ "ui.panel.config.automation.editor.blueprint.inputs"
+ )}
+
+ ${Object.entries(blueprint.metadata.input).map(
+ ([key, value]) =>
+ html`
+ ${value?.name || key}
+ ${value?.description}
+ ${value?.selector
+ ? html``
+ : html``}
+ `
)}`
- : ""}
-
+ : html`
+ ${this.hass.localize(
+ "ui.panel.config.automation.editor.blueprint.no_inputs"
+ )}
+
`}`
+ : ""}