Don't show alert in voice assistant dialog (#23097)

This commit is contained in:
Paul Bottein 2024-12-02 14:35:41 +01:00 committed by Bram Kragten
parent 05eb6e15a5
commit 6ff1a6fecc

View File

@ -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;