Move imports in mythicbeastsdns component (#28033)
This commit is contained in:
parent
92ed8362ce
commit
38db4b0a23
1 changed files with 3 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
||||||
"""Support for Mythic Beasts Dynamic DNS service."""
|
"""Support for Mythic Beasts Dynamic DNS service."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
|
import mbddns
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_DOMAIN,
|
CONF_DOMAIN,
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
|
@ -12,6 +12,7 @@ from homeassistant.const import (
|
||||||
CONF_SCAN_INTERVAL,
|
CONF_SCAN_INTERVAL,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.event import async_track_time_interval
|
from homeassistant.helpers.event import async_track_time_interval
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -39,8 +40,6 @@ CONFIG_SCHEMA = vol.Schema(
|
||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Initialize the Mythic Beasts component."""
|
"""Initialize the Mythic Beasts component."""
|
||||||
import mbddns
|
|
||||||
|
|
||||||
domain = config[DOMAIN][CONF_DOMAIN]
|
domain = config[DOMAIN][CONF_DOMAIN]
|
||||||
password = config[DOMAIN][CONF_PASSWORD]
|
password = config[DOMAIN][CONF_PASSWORD]
|
||||||
host = config[DOMAIN][CONF_HOST]
|
host = config[DOMAIN][CONF_HOST]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue