moved imports to top level (#27678)
This commit is contained in:
1 parent
5938f5a3a1
commit
502c65b5fd
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user