Move imports in baidu component (#27812)

pull/27813/merge
bouni 2019-10-18 02:11:11 +02:00 committed by Paulus Schoutsen
parent 54ef96e79a
commit 9d583ad9f9
1 changed files with 1 additions and 1 deletions

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"],