Tweak a couple of `stt` and `tts` related asserts (#92012)

Tweak a couple of stt and tts related asserts
pull/92019/head
Erik Montnemery 2023-04-25 18:50:37 +02:00 committed by GitHub
parent 933761d425
commit 8e70446ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ class PipelineRun:
code="stt-provider-unsupported-metadata",
message=(
f"Provider {stt_provider.name} does not support input speech "
"to text metadata {metadata}"
f"to text metadata {metadata}"
),
)

View File

@ -488,7 +488,7 @@ class SpeechManager:
or engine_instance.supported_languages is None
or language not in engine_instance.supported_languages
):
raise HomeAssistantError(f"Not supported language {language}")
raise HomeAssistantError(f"Language '{language}' not supported")
# Options
if (default_options := engine_instance.default_options) and options: