mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 14:57:09 +00:00
Tweak a couple of stt
and tts
related asserts (#92012)
Tweak a couple of stt and tts related asserts
This commit is contained in:
parent
933761d425
commit
8e70446ef8
@ -362,7 +362,7 @@ class PipelineRun:
|
|||||||
code="stt-provider-unsupported-metadata",
|
code="stt-provider-unsupported-metadata",
|
||||||
message=(
|
message=(
|
||||||
f"Provider {stt_provider.name} does not support input speech "
|
f"Provider {stt_provider.name} does not support input speech "
|
||||||
"to text metadata {metadata}"
|
f"to text metadata {metadata}"
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -488,7 +488,7 @@ class SpeechManager:
|
|||||||
or engine_instance.supported_languages is None
|
or engine_instance.supported_languages is None
|
||||||
or language not in engine_instance.supported_languages
|
or language not in engine_instance.supported_languages
|
||||||
):
|
):
|
||||||
raise HomeAssistantError(f"Not supported language {language}")
|
raise HomeAssistantError(f"Language '{language}' not supported")
|
||||||
|
|
||||||
# Options
|
# Options
|
||||||
if (default_options := engine_instance.default_options) and options:
|
if (default_options := engine_instance.default_options) and options:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user