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: