mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Use stt-vad-end event in assist debug panel (#18671)
* Use stt-vad-end event in assist debug panel * Remove end_suffix
This commit is contained in:
parent
08a7a10e1c
commit
f2efff9d71
@ -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 {
|
||||
<div class="card-content">
|
||||
<div class="row heading">
|
||||
<span>Speech-to-text</span>
|
||||
${renderProgress(this.hass, this.pipelineRun, "stt")}
|
||||
${renderProgress(
|
||||
this.hass,
|
||||
this.pipelineRun,
|
||||
"stt",
|
||||
"-vad-end"
|
||||
)}
|
||||
</div>
|
||||
${this.pipelineRun.stt
|
||||
? html`
|
||||
|
Loading…
x
Reference in New Issue
Block a user