mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-11 03:16:34 +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
|
const controlHA = !this._pipeline
|
||||||
? false
|
? false
|
||||||
: this.hass.states[this._pipeline?.conversation_engine]
|
: this._pipeline.prefer_local_intents ||
|
||||||
|
(this.hass.states[this._pipeline.conversation_engine]
|
||||||
? supportsFeature(
|
? supportsFeature(
|
||||||
this.hass.states[this._pipeline?.conversation_engine],
|
this.hass.states[this._pipeline.conversation_engine],
|
||||||
ConversationEntityFeature.CONTROL
|
ConversationEntityFeature.CONTROL
|
||||||
)
|
)
|
||||||
: true;
|
: true);
|
||||||
const supportsMicrophone = AudioRecorder.isSupported;
|
const supportsMicrophone = AudioRecorder.isSupported;
|
||||||
const supportsSTT = this._pipeline?.stt_engine;
|
const supportsSTT = this._pipeline?.stt_engine;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user