moved imports to top level (#27678)

pull/27689/head
bouni 2019-10-15 10:06:56 +02:00 committed by Pascal Vizeli
parent 5938f5a3a1
commit 502c65b5fd
1 changed files with 1 additions and 1 deletions

View File

@ -2,6 +2,7 @@
import logging
from datetime import timedelta
import dlipower
import voluptuous as vol
from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
@ -45,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Find and return DIN III Relay switch."""
import dlipower
host = config.get(CONF_HOST)
controller_name = config.get(CONF_NAME)