Move imports to top for route53 (#29273)

pull/29270/merge
springstan 2019-12-01 06:19:28 +01:00 committed by Paulus Schoutsen
parent aa9514b774
commit 96a28e59bc
1 changed files with 2 additions and 4 deletions

View File

@ -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(