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 const controlHA = !this._pipeline
? false ? false
: this.hass.states[this._pipeline?.conversation_engine] : this._pipeline.prefer_local_intents ||
? supportsFeature( (this.hass.states[this._pipeline.conversation_engine]
this.hass.states[this._pipeline?.conversation_engine], ? supportsFeature(
ConversationEntityFeature.CONTROL this.hass.states[this._pipeline.conversation_engine],
) ConversationEntityFeature.CONTROL
: true; )
: true);
const supportsMicrophone = AudioRecorder.isSupported; const supportsMicrophone = AudioRecorder.isSupported;
const supportsSTT = this._pipeline?.stt_engine; const supportsSTT = this._pipeline?.stt_engine;