From 17b1ba2e9fccc8d8c0e0bfdcdef06588803089db Mon Sep 17 00:00:00 2001 From: Paolo Tuninetto Date: Sat, 12 Oct 2019 21:57:18 +0200 Subject: [PATCH] Move AmazonPolly imports (#27443) --- homeassistant/components/amazon_polly/tts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/amazon_polly/tts.py b/homeassistant/components/amazon_polly/tts.py index 64b8b71457c..3acfd472320 100644 --- a/homeassistant/components/amazon_polly/tts.py +++ b/homeassistant/components/amazon_polly/tts.py @@ -1,5 +1,6 @@ """Support for the Amazon Polly text to speech service.""" import logging +import boto3 import voluptuous as vol @@ -156,8 +157,6 @@ def get_engine(hass, config): config[CONF_SAMPLE_RATE] = sample_rate - import boto3 - profile = config.get(CONF_PROFILE_NAME) if profile is not None: