Move imports to top for route53 (#29273)
parent
aa9514b774
commit
96a28e59bc
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue