mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 05:16:34 +00:00
fix voice wizard bugs (#24950)
This commit is contained in:
parent
316c3f4e1f
commit
2ccc5355c4
@ -52,7 +52,8 @@ export const assistSatelliteAnnounce = (
|
|||||||
args: {
|
args: {
|
||||||
message?: string;
|
message?: string;
|
||||||
media_id?: string;
|
media_id?: string;
|
||||||
preannounce_media_id?: string | null;
|
preannounce?: boolean;
|
||||||
|
preannounce_media_id?: string;
|
||||||
}
|
}
|
||||||
) => hass.callService("assist_satellite", "announce", args, { entity_id });
|
) => hass.callService("assist_satellite", "announce", args, { entity_id });
|
||||||
|
|
||||||
|
@ -90,6 +90,9 @@ export class HaVoiceAssistantSetupDialog extends LitElement {
|
|||||||
this._previousSteps = [];
|
this._previousSteps = [];
|
||||||
this._nextStep = undefined;
|
this._nextStep = undefined;
|
||||||
this._step = STEP.INIT;
|
this._step = STEP.INIT;
|
||||||
|
this._language = undefined;
|
||||||
|
this._languages = [];
|
||||||
|
this._localOption = undefined;
|
||||||
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
fireEvent(this, "dialog-closed", { dialog: this.localName });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +103,9 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
|||||||
</ha-select>
|
</ha-select>
|
||||||
<ha-button @click=${this._testWakeWord}>
|
<ha-button @click=${this._testWakeWord}>
|
||||||
<ha-svg-icon slot="icon" .path=${mdiMicrophone}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiMicrophone}></ha-svg-icon>
|
||||||
Test
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.voice_assistants.satellite_wizard.success.test_wakeword"
|
||||||
|
)}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>`
|
</div>`
|
||||||
: nothing}
|
: nothing}
|
||||||
@ -126,7 +128,9 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
|||||||
</ha-select>
|
</ha-select>
|
||||||
<ha-button @click=${this._openPipeline}>
|
<ha-button @click=${this._openPipeline}>
|
||||||
<ha-svg-icon slot="icon" .path=${mdiCog}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiCog}></ha-svg-icon>
|
||||||
Edit
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.voice_assistants.satellite_wizard.success.edit_pipeline"
|
||||||
|
)}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>`
|
</div>`
|
||||||
: nothing}
|
: nothing}
|
||||||
@ -142,14 +146,20 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
|||||||
></ha-tts-voice-picker>
|
></ha-tts-voice-picker>
|
||||||
<ha-button @click=${this._testTts}>
|
<ha-button @click=${this._testTts}>
|
||||||
<ha-svg-icon slot="icon" .path=${mdiPlay}></ha-svg-icon>
|
<ha-svg-icon slot="icon" .path=${mdiPlay}></ha-svg-icon>
|
||||||
Try
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.voice_assistants.satellite_wizard.success.try_tts"
|
||||||
|
)}
|
||||||
</ha-button>
|
</ha-button>
|
||||||
</div>`
|
</div>`
|
||||||
: nothing}
|
: nothing}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
<ha-button @click=${this._close} unelevated>Done</ha-button>
|
<ha-button @click=${this._close} unelevated
|
||||||
|
>${this.hass.localize(
|
||||||
|
"ui.panel.config.voice_assistants.satellite_wizard.success.done"
|
||||||
|
)}</ha-button
|
||||||
|
>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +258,7 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
|||||||
}
|
}
|
||||||
await assistSatelliteAnnounce(this.hass, this.assistEntityId, {
|
await assistSatelliteAnnounce(this.hass, this.assistEntityId, {
|
||||||
message,
|
message,
|
||||||
preannounce_media_id: null,
|
preannounce: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3486,7 +3486,11 @@
|
|||||||
},
|
},
|
||||||
"success": {
|
"success": {
|
||||||
"title": "Ready to Assist!",
|
"title": "Ready to Assist!",
|
||||||
"secondary": "Make any final customizations here. You can always change these in the Voice assistants section of the settings page."
|
"secondary": "Make any final customizations here. You can always change these in the Voice assistants section of the settings page.",
|
||||||
|
"test_wakeword": "Test",
|
||||||
|
"edit_pipeline": "Edit",
|
||||||
|
"try_tts": "Try",
|
||||||
|
"done": "Done"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user