mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Do not play pre-announce sound when testing voice on satellite (#24827)
This commit is contained in:
parent
e765cc10fb
commit
d5ff8ab1e1
@ -49,9 +49,12 @@ export const testAssistSatelliteConnection = (
|
||||
export const assistSatelliteAnnounce = (
|
||||
hass: HomeAssistant,
|
||||
entity_id: string,
|
||||
message: string
|
||||
) =>
|
||||
hass.callService("assist_satellite", "announce", { message }, { entity_id });
|
||||
args: {
|
||||
message?: string;
|
||||
media_id?: string;
|
||||
preannounce_media_id?: string | null;
|
||||
}
|
||||
) => hass.callService("assist_satellite", "announce", args, { entity_id });
|
||||
|
||||
export const fetchAssistSatelliteConfiguration = (
|
||||
hass: HomeAssistant,
|
||||
|
@ -246,7 +246,10 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
||||
if (!this.assistEntityId) {
|
||||
return;
|
||||
}
|
||||
await assistSatelliteAnnounce(this.hass, this.assistEntityId, message);
|
||||
await assistSatelliteAnnounce(this.hass, this.assistEntityId, {
|
||||
message,
|
||||
preannounce_media_id: null,
|
||||
});
|
||||
}
|
||||
|
||||
private _testWakeWord() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user