From b3b2f2e326b7211d707a74ae907b01a3428f7950 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 28 Oct 2015 00:18:03 +0100 Subject: [PATCH] Fix pylint and flake issues --- homeassistant/components/sensor/arest.py | 1 - homeassistant/components/switch/wemo.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/arest.py b/homeassistant/components/sensor/arest.py index bd1f5edcaea..d1533e14798 100644 --- a/homeassistant/components/sensor/arest.py +++ b/homeassistant/components/sensor/arest.py @@ -30,7 +30,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None): var_conf = config.get(CONF_MONITORED_VARIABLES) pins = config.get('pins', None) - if resource is None: _LOGGER.error('Not all required config keys present: %s', CONF_RESOURCE) diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index c710a914d80..8781b5adf0f 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -15,7 +15,7 @@ REQUIREMENTS = ['pywemo==0.3.2'] _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): """ Find and return WeMo switches. """ import pywemo