mirror of
https://github.com/home-assistant/core.git
synced 2025-08-09 15:45:08 +02:00
Move imports to top for microsoft (#29395)
This commit is contained in:
committed by
Fabian Affolter
parent
518ca3afa7
commit
048068307d
@@ -2,6 +2,7 @@
|
||||
from http.client import HTTPException
|
||||
import logging
|
||||
|
||||
from pycsspeechtts import pycsspeechtts
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
|
||||
@@ -142,7 +143,6 @@ class MicrosoftProvider(Provider):
|
||||
"""Load TTS from Microsoft."""
|
||||
if language is None:
|
||||
language = self._lang
|
||||
from pycsspeechtts import pycsspeechtts
|
||||
|
||||
try:
|
||||
trans = pycsspeechtts.TTSTranslator(self._apikey, self._region)
|
||||
|
Reference in New Issue
Block a user