mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Update voice-assistant-setup-step-local.ts
This commit is contained in:
parent
d257f667c1
commit
7c1d74c6c3
@ -243,7 +243,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
|||||||
|
|
||||||
private readonly _ttsHostName = "core-piper";
|
private readonly _ttsHostName = "core-piper";
|
||||||
|
|
||||||
private readonly _ttsPort = "10200";
|
private readonly _ttsPort = 10200;
|
||||||
|
|
||||||
private get _sttProviderName() {
|
private get _sttProviderName() {
|
||||||
return this.localOption === "focused_local"
|
return this.localOption === "focused_local"
|
||||||
@ -263,7 +263,7 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
|||||||
: "core-whisper";
|
: "core-whisper";
|
||||||
}
|
}
|
||||||
|
|
||||||
private readonly _sttPort = "10300";
|
private readonly _sttPort = 10300;
|
||||||
|
|
||||||
private async _findLocalEntities() {
|
private async _findLocalEntities() {
|
||||||
const wyomingEntities = Object.values(this.hass.entities).filter(
|
const wyomingEntities = Object.values(this.hass.entities).filter(
|
||||||
@ -329,8 +329,8 @@ export class HaVoiceAssistantSetupStepLocal extends LitElement {
|
|||||||
flow.context.configuration_url.includes(
|
flow.context.configuration_url.includes(
|
||||||
type === "tts" ? this._ttsAddonName : this._sttAddonName
|
type === "tts" ? this._ttsAddonName : this._sttAddonName
|
||||||
)) ||
|
)) ||
|
||||||
(flow.context.title_placeholders.title &&
|
(flow.context.title_placeholders.name &&
|
||||||
flow.context.title_placeholders.title
|
flow.context.title_placeholders.name
|
||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.includes(
|
.includes(
|
||||||
type === "tts" ? this._ttsProviderName : this._sttProviderName
|
type === "tts" ? this._ttsProviderName : this._sttProviderName
|
||||||
|
Loading…
x
Reference in New Issue
Block a user