Fixed flake8 violations
This commit is contained in:
parent
f351ab9544
commit
ffde7e183e
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,8 @@ import logging
|
||||||
|
|
||||||
from homeassistant.helpers import validate_config
|
from homeassistant.helpers import validate_config
|
||||||
from homeassistant.components.switch import SwitchDevice, DOMAIN
|
from homeassistant.components.switch import SwitchDevice, DOMAIN
|
||||||
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD, CONF_NAME
|
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD,\
|
||||||
|
CONF_NAME
|
||||||
|
|
||||||
# constants
|
# constants
|
||||||
DEFAULT_USERNAME = 'admin'
|
DEFAULT_USERNAME = 'admin'
|
||||||
|
@ -18,6 +19,7 @@ DEVICE_DEFAULT_NAME = 'Edimax Smart Plug'
|
||||||
# setup logger
|
# setup logger
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
""" Find and return Edimax Smart Plugs. """
|
""" Find and return Edimax Smart Plugs. """
|
||||||
|
|
Loading…
Add table
Reference in a new issue