From 96a28e59bca9bdfee44d522b36a9851f896ec93c Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Sun, 1 Dec 2019 06:19:28 +0100 Subject: [PATCH] Move imports to top for route53 (#29273) --- homeassistant/components/route53/__init__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/route53/__init__.py b/homeassistant/components/route53/__init__.py index 3dffc3ffd9e..a84475ab8a1 100644 --- a/homeassistant/components/route53/__init__.py +++ b/homeassistant/components/route53/__init__.py @@ -3,6 +3,8 @@ from datetime import timedelta import logging from typing import List +import boto3 +from ipify import exceptions, get_ip import voluptuous as vol from homeassistant.const import CONF_DOMAIN, CONF_TTL, CONF_ZONE @@ -72,10 +74,6 @@ def _update_route53( records: List[str], ttl: int, ): - import boto3 - from ipify import get_ip - from ipify import exceptions - _LOGGER.debug("Starting update for zone %s", zone) client = boto3.client(