${this._blueprints
? Object.keys(this._blueprints).length
? html`
`
: this.hass.localize(
"ui.panel.config.automation.editor.blueprint.no_blueprints"
)
: html``}
${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?.input &&
Object.keys(blueprint.metadata.input).length
? 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"
)}
`}`
: ""}