Fix Automation Creation Dialog (#13322)

This commit is contained in:
Zack Barett 2022-08-02 08:48:22 -05:00 committed by GitHub
parent f44fd35b90
commit f7e348c19b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,4 @@
import "@material/mwc-list/mwc-list-item"; import "@material/mwc-list/mwc-list-item";
import "./ha-select";
import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit"; import { css, CSSResultGroup, html, LitElement, TemplateResult } from "lit";
import { customElement, property } from "lit/decorators"; import { customElement, property } from "lit/decorators";
import memoizeOne from "memoize-one"; import memoizeOne from "memoize-one";
@ -8,6 +7,7 @@ import { stopPropagation } from "../common/dom/stop_propagation";
import { stringCompare } from "../common/string/compare"; import { stringCompare } from "../common/string/compare";
import { Blueprint, Blueprints, fetchBlueprints } from "../data/blueprint"; import { Blueprint, Blueprints, fetchBlueprints } from "../data/blueprint";
import { HomeAssistant } from "../types"; import { HomeAssistant } from "../types";
import "./ha-select";
@customElement("ha-blueprint-picker") @customElement("ha-blueprint-picker")
class HaBluePrintPicker extends LitElement { class HaBluePrintPicker extends LitElement {
@ -59,11 +59,6 @@ class HaBluePrintPicker extends LitElement {
@selected=${this._blueprintChanged} @selected=${this._blueprintChanged}
@closed=${stopPropagation} @closed=${stopPropagation}
> >
<mwc-list-item value="">
${this.hass.localize(
"ui.components.blueprint-picker.select_blueprint"
)}
</mwc-list-item>
${this._processedBlueprints(this.blueprints).map( ${this._processedBlueprints(this.blueprints).map(
(blueprint) => html` (blueprint) => html`
<mwc-list-item .value=${blueprint.path}> <mwc-list-item .value=${blueprint.path}>