From 22cfd40cccc29f9c4b7f97de200877ba2745b876 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 2 Dec 2024 14:35:41 +0100 Subject: [PATCH] Don't show alert in voice assistant dialog (#23097) --- .../voice-command-dialog/ha-voice-command-dialog.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts index 4b7d02013459..42c311bef2de 100644 --- a/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts +++ b/src/dialogs/voice-command-dialog/ha-voice-command-dialog.ts @@ -134,12 +134,13 @@ export class HaVoiceCommandDialog extends LitElement { const controlHA = !this._pipeline ? false - : this.hass.states[this._pipeline?.conversation_engine] - ? supportsFeature( - this.hass.states[this._pipeline?.conversation_engine], - ConversationEntityFeature.CONTROL - ) - : true; + : this._pipeline.prefer_local_intents || + (this.hass.states[this._pipeline.conversation_engine] + ? supportsFeature( + this.hass.states[this._pipeline.conversation_engine], + ConversationEntityFeature.CONTROL + ) + : true); const supportsMicrophone = AudioRecorder.isSupported; const supportsSTT = this._pipeline?.stt_engine;