mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Don't show alert in voice assistant dialog (#23097)
This commit is contained in:
parent
05eb6e15a5
commit
6ff1a6fecc
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user