Move imports in baidu component (#27812)

This commit is contained in:
bouni authored and Paulus Schoutsen committed 2019-10-17 17:11:11 -07:00
1 parent 54ef96e79a
commit 9d583ad9f9
1 file changed
+1 -1
+1 -1
View File
@@ -1,6 +1,7 @@
"""Support for Baidu speech service."""
import logging
from aip import AipSpeech
import voluptuous as vol
from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider
@@ -106,7 +107,6 @@ class BaiduTTSProvider(Provider):
def get_tts_audio(self, message, language, options=None):
"""Load TTS from BaiduTTS."""
from aip import AipSpeech
aip_speech = AipSpeech(
self._app_data["appid"],