mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix pylint and flake issues
This commit is contained in:
parent
bef0b2b01e
commit
b3b2f2e326
@ -30,7 +30,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
var_conf = config.get(CONF_MONITORED_VARIABLES)
|
var_conf = config.get(CONF_MONITORED_VARIABLES)
|
||||||
pins = config.get('pins', None)
|
pins = config.get('pins', None)
|
||||||
|
|
||||||
|
|
||||||
if resource is None:
|
if resource is None:
|
||||||
_LOGGER.error('Not all required config keys present: %s',
|
_LOGGER.error('Not all required config keys present: %s',
|
||||||
CONF_RESOURCE)
|
CONF_RESOURCE)
|
||||||
|
@ -15,7 +15,7 @@ REQUIREMENTS = ['pywemo==0.3.2']
|
|||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument, too-many-function-args
|
||||||
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 WeMo switches. """
|
""" Find and return WeMo switches. """
|
||||||
import pywemo
|
import pywemo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user