From 2a979135204ba1d4dc03b31fe4b590bd3c2355f6 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Wed, 10 Dec 2025 23:31:42 -0800 Subject: [PATCH] Pass hass to ha-yaml-editors (and others) (#28485) --- src/components/trace/ha-trace-blueprint-config.ts | 1 + src/components/trace/ha-trace-config.ts | 1 + src/components/trace/ha-trace-path-details.ts | 1 + .../action/types/ha-automation-action-condition.ts | 1 + .../config/automation/add-automation-element-dialog.ts | 1 + src/panels/config/blueprint/dialog-import-blueprint.ts | 1 + src/panels/config/entities/ha-config-entities.ts | 1 + .../integration-panels/ssdp/dialog-ssdp-raw-data.ts | 3 ++- .../integration-panels/zha/zha-device-signature.ts | 8 +++++++- .../debug/assist-render-pipeline-run.ts | 10 +++++++++- .../developer-tools/event/developer-tools-event.ts | 1 + .../developer-tools/event/event-subscribe-card.ts | 1 + .../developer-tools/state/developer-tools-state.ts | 1 + 13 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/components/trace/ha-trace-blueprint-config.ts b/src/components/trace/ha-trace-blueprint-config.ts index f9818e1c74..76adb6bfaf 100644 --- a/src/components/trace/ha-trace-blueprint-config.ts +++ b/src/components/trace/ha-trace-blueprint-config.ts @@ -17,6 +17,7 @@ export class HaTraceBlueprintConfig extends LitElement { return html` diff --git a/src/components/trace/ha-trace-config.ts b/src/components/trace/ha-trace-config.ts index efc7e0f0c9..06d1c50df8 100644 --- a/src/components/trace/ha-trace-config.ts +++ b/src/components/trace/ha-trace-config.ts @@ -17,6 +17,7 @@ export class HaTraceConfig extends LitElement { return html` diff --git a/src/components/trace/ha-trace-path-details.ts b/src/components/trace/ha-trace-path-details.ts index 27f925f540..de7969a760 100644 --- a/src/components/trace/ha-trace-path-details.ts +++ b/src/components/trace/ha-trace-path-details.ts @@ -278,6 +278,7 @@ export class HaTracePathDetails extends LitElement { return config ? html`` diff --git a/src/panels/config/automation/action/types/ha-automation-action-condition.ts b/src/panels/config/automation/action/types/ha-automation-action-condition.ts index 92a682fcbc..9c99aceb1d 100644 --- a/src/panels/config/automation/action/types/ha-automation-action-condition.ts +++ b/src/panels/config/automation/action/types/ha-automation-action-condition.ts @@ -109,6 +109,7 @@ export class HaConditionAction ${label} diff --git a/src/panels/config/automation/add-automation-element-dialog.ts b/src/panels/config/automation/add-automation-element-dialog.ts index 963a31ddd5..c97a7c861b 100644 --- a/src/panels/config/automation/add-automation-element-dialog.ts +++ b/src/panels/config/automation/add-automation-element-dialog.ts @@ -450,6 +450,7 @@ class DialogAddAutomationElement return html` diff --git a/src/panels/config/entities/ha-config-entities.ts b/src/panels/config/entities/ha-config-entities.ts index 720f6b592a..0906aa1ce1 100644 --- a/src/panels/config/entities/ha-config-entities.ts +++ b/src/panels/config/entities/ha-config-entities.ts @@ -311,6 +311,7 @@ export class HaConfigEntities extends SubscribeMixin(LitElement) { > ` : html``, }, diff --git a/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-raw-data.ts b/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-raw-data.ts index 6dade384c3..204668b1f3 100644 --- a/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-raw-data.ts +++ b/src/panels/config/integrations/integration-panels/ssdp/dialog-ssdp-raw-data.ts @@ -46,7 +46,8 @@ class DialogSSDPRawData extends LitElement implements HassDialog { diff --git a/src/panels/config/integrations/integration-panels/zha/zha-device-signature.ts b/src/panels/config/integrations/integration-panels/zha/zha-device-signature.ts index 7ddecd68e5..b2578c87b8 100644 --- a/src/panels/config/integrations/integration-panels/zha/zha-device-signature.ts +++ b/src/panels/config/integrations/integration-panels/zha/zha-device-signature.ts @@ -35,7 +35,13 @@ class ZHADeviceZigbeeInfo extends LitElement { } return html` - + `; } diff --git a/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts b/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts index 63138caa25..5713ca1d41 100644 --- a/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts +++ b/src/panels/config/voice-assistants/debug/assist-render-pipeline-run.ts @@ -129,7 +129,12 @@ const dataMinusKeysRender = ( ${hass.localize("ui.panel.config.voice_assistants.debug.raw")} - + ` : ""; }; @@ -237,6 +242,7 @@ export class AssistPipelineDebug extends LitElement { @@ -265,6 +271,7 @@ export class AssistPipelineDebug extends LitElement { @@ -528,6 +535,7 @@ export class AssistPipelineDebug extends LitElement { diff --git a/src/panels/developer-tools/event/developer-tools-event.ts b/src/panels/developer-tools/event/developer-tools-event.ts index 0d437b1904..4f5dedb376 100644 --- a/src/panels/developer-tools/event/developer-tools-event.ts +++ b/src/panels/developer-tools/event/developer-tools-event.ts @@ -70,6 +70,7 @@ class HaPanelDevEvent extends LitElement {
diff --git a/src/panels/developer-tools/state/developer-tools-state.ts b/src/panels/developer-tools/state/developer-tools-state.ts index d2d80b32c3..9fe0f82b71 100644 --- a/src/panels/developer-tools/state/developer-tools-state.ts +++ b/src/panels/developer-tools/state/developer-tools-state.ts @@ -180,6 +180,7 @@ class HaPanelDevState extends LitElement { )}