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