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 GitHub
parent 5c7d9b3fa3
commit 22cfd40ccc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,12 +134,13 @@ export class HaVoiceCommandDialog extends LitElement {
const controlHA = !this._pipeline
? false
: this.hass.states[this._pipeline?.conversation_engine]
: this._pipeline.prefer_local_intents ||
(this.hass.states[this._pipeline.conversation_engine]
? supportsFeature(
this.hass.states[this._pipeline?.conversation_engine],
this.hass.states[this._pipeline.conversation_engine],
ConversationEntityFeature.CONTROL
)
: true;
: true);
const supportsMicrophone = AudioRecorder.isSupported;
const supportsSTT = this._pipeline?.stt_engine;