Move imports in anel_pwrctrl component (#27798)
This commit is contained in:
parent
bc58649c2b
commit
d95b4a6a0b
1 changed files with 4 additions and 5 deletions
|
@ -1,13 +1,14 @@
|
|||
"""Support for ANEL PwrCtrl switches."""
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
import socket
|
||||
from datetime import timedelta
|
||||
|
||||
from anel_pwrctrl import DeviceMaster
|
||||
import voluptuous as vol
|
||||
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
|
||||
from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
from homeassistant.util import Throttle
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
@ -36,8 +37,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
port_recv = config.get(CONF_PORT_RECV)
|
||||
port_send = config.get(CONF_PORT_SEND)
|
||||
|
||||
from anel_pwrctrl import DeviceMaster
|
||||
|
||||
try:
|
||||
master = DeviceMaster(
|
||||
username=username,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue