From 2751adf440df6bf8bb1347f876381d3d961b456f Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 1 Sep 2022 17:37:22 +0200 Subject: [PATCH] remove duplicate controls blueprint automation (#13554) --- .../automation/blueprint-automation-editor.ts | 46 +------------------ 1 file changed, 1 insertion(+), 45 deletions(-) diff --git a/src/panels/config/automation/blueprint-automation-editor.ts b/src/panels/config/automation/blueprint-automation-editor.ts index 8446f2632e..5215c06dd1 100644 --- a/src/panels/config/automation/blueprint-automation-editor.ts +++ b/src/panels/config/automation/blueprint-automation-editor.ts @@ -3,7 +3,6 @@ import { HassEntity } from "home-assistant-js-websocket"; import { css, CSSResultGroup, html, LitElement, PropertyValues } from "lit"; import { customElement, property, state } from "lit/decorators"; import { fireEvent } from "../../../common/dom/fire_event"; -import "../../../components/entity/ha-entity-toggle"; import "../../../components/ha-blueprint-picker"; import "../../../components/ha-card"; import "../../../components/ha-circular-progress"; @@ -11,10 +10,7 @@ import "../../../components/ha-markdown"; import "../../../components/ha-selector/ha-selector"; import "../../../components/ha-settings-row"; import "../../../components/ha-textfield"; -import { - BlueprintAutomationConfig, - triggerAutomationActions, -} from "../../../data/automation"; +import { BlueprintAutomationConfig } from "../../../data/automation"; import { BlueprintOrError, Blueprints, @@ -67,9 +63,6 @@ export class HaBlueprintAutomationEditor extends LitElement { const blueprint = this._blueprint; return html` - ${!this.narrow - ? html` ${this.config.alias} ` - : ""} ${this.hass.localize( "ui.panel.config.automation.editor.introduction" @@ -102,36 +95,6 @@ export class HaBlueprintAutomationEditor extends LitElement { `} - ${this.stateObj - ? html` -
-
- - ${this.hass.localize( - "ui.panel.config.automation.editor.enable_disable" - )} -
-
- - - ${this.hass.localize( - "ui.panel.config.automation.editor.show_trace" - )} - - - - ${this.hass.localize("ui.card.automation.trigger")} - -
-
- ` - : ""}
@@ -220,10 +183,6 @@ export class HaBlueprintAutomationEditor extends LitElement { this._blueprints = await fetchBlueprints(this.hass, "automation"); } - private _runActions(ev: Event) { - triggerAutomationActions(this.hass, (ev.target as any).stateObj.entity_id); - } - private _blueprintChanged(ev) { ev.stopPropagation(); if (this.config.use_blueprint.path === ev.detail.value) { @@ -319,9 +278,6 @@ export class HaBlueprintAutomationEditor extends LitElement { p { margin-bottom: 0; } - ha-entity-toggle { - margin-right: 8px; - } ha-settings-row { --paper-time-input-justify-content: flex-end; --settings-row-content-width: 100%;