mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
moved imports to top level (#27678)
This commit is contained in:
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…
x
Reference in New Issue
Block a user