Minor adjustment of tts typing (#93450)

This commit is contained in:
Erik Montnemery 2023-05-24 21:02:55 +02:00 committed by GitHub
parent 68379dd55a
commit 30d9d7d905
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 49 additions and 62 deletions

View file

@ -134,12 +134,11 @@ class CloudProvider(Provider):
}
async def async_get_tts_audio(
self, message: str, language: str, options: dict[str, Any] | None = None
self, message: str, language: str, options: dict[str, Any]
) -> TtsAudioType:
"""Load TTS from NabuCasa Cloud."""
# Process TTS
try:
assert options is not None
data = await self.cloud.voice.process_tts(
text=message,
language=language,