mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +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 = (
|
export const assistSatelliteAnnounce = (
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
entity_id: string,
|
entity_id: string,
|
||||||
message: string
|
args: {
|
||||||
) =>
|
message?: string;
|
||||||
hass.callService("assist_satellite", "announce", { message }, { entity_id });
|
media_id?: string;
|
||||||
|
preannounce_media_id?: string | null;
|
||||||
|
}
|
||||||
|
) => hass.callService("assist_satellite", "announce", args, { entity_id });
|
||||||
|
|
||||||
export const fetchAssistSatelliteConfiguration = (
|
export const fetchAssistSatelliteConfiguration = (
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -246,7 +246,10 @@ export class HaVoiceAssistantSetupStepSuccess extends LitElement {
|
|||||||
if (!this.assistEntityId) {
|
if (!this.assistEntityId) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await assistSatelliteAnnounce(this.hass, this.assistEntityId, message);
|
await assistSatelliteAnnounce(this.hass, this.assistEntityId, {
|
||||||
|
message,
|
||||||
|
preannounce_media_id: null,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private _testWakeWord() {
|
private _testWakeWord() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user