From f2efff9d71568d1d0e89aeac07640cab45b30517 Mon Sep 17 00:00:00 2001 From: Michael Hansen Date: Wed, 15 Nov 2023 15:36:49 -0600 Subject: [PATCH] Use stt-vad-end event in assist debug panel (#18671) * Use stt-vad-end event in assist debug panel * Remove end_suffix --- .../debug/assist-render-pipeline-run.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) 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 132e4f2e2fce..00077991afef 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 @@ -71,10 +71,11 @@ const maybeRenderError = ( const renderProgress = ( hass: HomeAssistant, pipelineRun: PipelineRun, - stage: PipelineRun["stage"] + stage: PipelineRun["stage"], + start_suffix: string = "-start" ) => { const startEvent = pipelineRun.events.find( - (ev) => ev.type === `${stage}-start` + (ev) => ev.type === `${stage}` + start_suffix ); const finishEvent = pipelineRun.events.find( (ev) => ev.type === `${stage}-end` @@ -244,7 +245,12 @@ export class AssistPipelineDebug extends LitElement {
Speech-to-text - ${renderProgress(this.hass, this.pipelineRun, "stt")} + ${renderProgress( + this.hass, + this.pipelineRun, + "stt", + "-vad-end" + )}
${this.pipelineRun.stt ? html`