mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Add check for conversation entity (#21736)
* Add check for conversation entity * Use true as default
This commit is contained in:
parent
5622180d42
commit
8ed68bf295
@ -140,10 +140,12 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
|
|
||||||
const controlHA = !this._pipeline
|
const controlHA = !this._pipeline
|
||||||
? false
|
? false
|
||||||
: 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;
|
||||||
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