Move imports in cloudflare integration(#27882)

pull/27899/head
bouni 2019-10-18 21:32:14 +02:00 committed by Joakim Sørensen
parent 103ffacea7
commit 6157be23dc
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
from datetime import timedelta
import logging
from pycfdns import CloudflareUpdater
import voluptuous as vol
from homeassistant.const import CONF_API_KEY, CONF_EMAIL, CONF_ZONE
@ -33,7 +34,6 @@ CONFIG_SCHEMA = vol.Schema(
def setup(hass, config):
"""Set up the Cloudflare component."""
from pycfdns import CloudflareUpdater
cfupdate = CloudflareUpdater()
email = config[DOMAIN][CONF_EMAIL]