From 1596578f961c9190e3aa9cdf4fa19457b157a410 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 5 Apr 2023 10:20:21 +0200 Subject: [PATCH] Fix automation editor (#16057) --- hassio/src/addon-store/hassio-addon-store.ts | 6 +----- hassio/src/addon-view/config/hassio-addon-config.ts | 2 +- hassio/src/backups/hassio-backups.ts | 6 +----- hassio/src/system/hassio-host-info.ts | 2 +- src/components/ha-button-menu.ts | 2 +- src/components/ha-button-related-filter-menu.ts | 2 +- src/components/ha-form/ha-form-multi_select.ts | 1 - src/components/ha-icon-overflow-menu.ts | 1 - src/components/ha-qr-scanner.ts | 6 +----- src/components/ha-target-picker.ts | 1 - src/dialogs/more-info/controls/more-info-fan.ts | 1 - src/dialogs/more-info/controls/more-info-light.ts | 1 - src/layouts/hass-subpage.ts | 4 +++- .../config/automation/action/ha-automation-action-row.ts | 2 -- .../config/automation/action/ha-automation-action.ts | 6 +----- .../automation/condition/ha-automation-condition-row.ts | 2 -- .../config/automation/condition/ha-automation-condition.ts | 6 +----- src/panels/config/automation/ha-automation-editor.ts | 2 +- src/panels/config/automation/ha-automation-picker.ts | 1 - src/panels/config/automation/ha-automation-trace.ts | 2 +- .../config/automation/trigger/ha-automation-trigger-row.ts | 2 -- src/panels/config/cloud/alexa/cloud-alexa.ts | 3 +-- .../cloud/google-assistant/cloud-google-assistant.ts | 3 +-- src/panels/config/core/ha-config-section-updates.ts | 2 +- src/panels/config/dashboard/ha-config-dashboard.ts | 6 +----- src/panels/config/devices/ha-config-device-page.ts | 2 +- src/panels/config/devices/ha-config-devices-dashboard.ts | 2 +- src/panels/config/entities/ha-config-entities.ts | 2 +- src/panels/config/integrations/ha-config-flow-card.ts | 2 +- src/panels/config/integrations/ha-config-integrations.ts | 1 - src/panels/config/integrations/ha-integration-card.ts | 2 +- .../config/integrations/ha-integration-overflow-menu.ts | 2 +- .../integration-panels/thread/thread-config-panel.ts | 3 +-- src/panels/config/logs/ha-config-logs.ts | 2 +- .../lovelace/dashboards/ha-config-lovelace-dashboards.ts | 6 +----- src/panels/config/network/supervisor-network.ts | 2 +- src/panels/config/repairs/ha-config-repairs-dashboard.ts | 2 +- src/panels/config/scene/ha-scene-dashboard.ts | 1 - src/panels/config/scene/ha-scene-editor.ts | 1 - src/panels/config/script/ha-script-editor.ts | 2 +- src/panels/config/script/ha-script-picker.ts | 1 - src/panels/config/script/ha-script-trace.ts | 2 +- src/panels/config/storage/ha-config-section-storage.ts | 2 +- src/panels/lovelace/components/hui-card-options.ts | 2 +- src/panels/lovelace/hui-root.ts | 7 ++----- src/panels/media-browser/ha-bar-media-player.ts | 4 ++-- 46 files changed, 37 insertions(+), 85 deletions(-) diff --git a/hassio/src/addon-store/hassio-addon-store.ts b/hassio/src/addon-store/hassio-addon-store.ts index 024d803be2..ab434eb8ca 100644 --- a/hassio/src/addon-store/hassio-addon-store.ts +++ b/hassio/src/addon-store/hassio-addon-store.ts @@ -92,11 +92,7 @@ export class HassioAddonStore extends LitElement { .route=${this.route} .header=${this.supervisor.localize("panel.store")} > - +
- + - + +
${this._cameras && this._cameras.length > 1 - ? html` + ? html` diff --git a/src/panels/config/automation/action/ha-automation-action.ts b/src/panels/config/automation/action/ha-automation-action.ts index 7ff8100b76..98b10bbffa 100644 --- a/src/panels/config/automation/action/ha-automation-action.ts +++ b/src/panels/config/automation/action/ha-automation-action.ts @@ -128,11 +128,7 @@ export default class HaAutomationAction extends LitElement { ` )}
- + diff --git a/src/panels/config/automation/condition/ha-automation-condition.ts b/src/panels/config/automation/condition/ha-automation-condition.ts index 942fe074ae..12b4fd3bbb 100644 --- a/src/panels/config/automation/condition/ha-automation-condition.ts +++ b/src/panels/config/automation/condition/ha-automation-condition.ts @@ -180,11 +180,7 @@ export default class HaAutomationCondition extends LitElement { ` )}
- + ` : ""} - + ` : ""} - + diff --git a/src/panels/config/cloud/alexa/cloud-alexa.ts b/src/panels/config/cloud/alexa/cloud-alexa.ts index 8c666890dc..6c8dbda913 100644 --- a/src/panels/config/cloud/alexa/cloud-alexa.ts +++ b/src/panels/config/cloud/alexa/cloud-alexa.ts @@ -168,7 +168,6 @@ class CloudAlexa extends LitElement { ${!emptyFilter ? html`${iconButton}` : html` @@ -225,7 +224,7 @@ class CloudAlexa extends LitElement { .narrow=${this.narrow} .header=${this.hass!.localize("ui.panel.config.cloud.alexa.title")} > - + @@ -302,7 +301,7 @@ class CloudGoogleAssistant extends LitElement { .hass=${this.hass} .header=${this.hass!.localize("ui.panel.config.cloud.google.title")} .narrow=${this.narrow}> - + - + - + + - + ` : html` - + - + ${disabledCount}` : ""} - + + - + ${router.server} ${router.extended_address === this._otbrInfo?.extended_address ? html` diff --git a/src/panels/config/logs/ha-config-logs.ts b/src/panels/config/logs/ha-config-logs.ts index a220344260..6788c9b639 100644 --- a/src/panels/config/logs/ha-config-logs.ts +++ b/src/panels/config/logs/ha-config-logs.ts @@ -115,7 +115,7 @@ export class HaConfigLogs extends LitElement { ${isComponentLoaded(this.hass, "hassio") && this.hass.userData?.showAdvanced ? html` - + ${this.hass.userData?.showAdvanced ? html` - + ` : this.hass.localize("ui.common.save")} - +
- + ` : ""} - + + ${this._hostInfo ? html` - + - + - + + + + ${ this.narrow ? html`