From fe9084bb3bfed8d34a71a22f0039e7601aaa587a Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Mon, 25 Nov 2019 09:42:37 +0100 Subject: [PATCH] Move imports to top for watson_tts (#29023) --- homeassistant/components/watson_tts/tts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/watson_tts/tts.py b/homeassistant/components/watson_tts/tts.py index 40ebd768a31..520151cf20e 100644 --- a/homeassistant/components/watson_tts/tts.py +++ b/homeassistant/components/watson_tts/tts.py @@ -1,6 +1,8 @@ """Support for IBM Watson TTS integration.""" import logging +from ibm_watson import TextToSpeechV1 +from ibm_cloud_sdk_core.authenticators import IAMAuthenticator import voluptuous as vol from homeassistant.components.tts import PLATFORM_SCHEMA, Provider @@ -92,8 +94,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( def get_engine(hass, config, discovery_info=None): """Set up IBM Watson TTS component.""" - from ibm_watson import TextToSpeechV1 - from ibm_cloud_sdk_core.authenticators import IAMAuthenticator authenticator = IAMAuthenticator(config[CONF_APIKEY]) service = TextToSpeechV1(authenticator)