moved imports to top level (#27678)
parent
5938f5a3a1
commit
502c65b5fd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue