From d3e9a227590da26ccdfa0fa0e4ecd777575287ba Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Mon, 21 Sep 2015 08:14:11 +0200 Subject: [PATCH 1/3] Added pylint hint! --- homeassistant/components/light/tellstick.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index f5e74029ced..216b9553c3a 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -11,7 +11,7 @@ import tellcore.constants as tellcore_constants from tellcore.library import DirectCallbackDispatcher REQUIREMENTS = ['tellcore-py==1.0.4'] - +# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """ Find and return Tellstick lights. """ From 2785c373fb2b82a393fbef42af59d94fb6351b22 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Mon, 21 Sep 2015 08:26:14 +0200 Subject: [PATCH 2/3] E302 expected 2 blank lines, found 1 --- homeassistant/components/light/tellstick.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index 216b9553c3a..05ba334d26c 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -11,6 +11,7 @@ import tellcore.constants as tellcore_constants from tellcore.library import DirectCallbackDispatcher REQUIREMENTS = ['tellcore-py==1.0.4'] + # pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """ Find and return Tellstick lights. """ From 6437f6f6b49fa5da0f71bc4d2c024e912aaf5319 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Mon, 21 Sep 2015 12:57:11 +0200 Subject: [PATCH 3/3] Desperate try to fix travis ci reporting a unused-argument --- homeassistant/components/light/tellstick.py | 1 - homeassistant/components/switch/tellstick.py | 1 - 2 files changed, 2 deletions(-) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index 05ba334d26c..19ce1a06d4a 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -37,7 +37,6 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): if switch.methods(tellcore_constants.TELLSTICK_DIM): lights.append(TellstickLight(switch)) - # pylint: disable=unused-argument def _device_event_callback(id_, method, data, cid): """ Called from the TelldusCore library to update one device """ for light_device in lights: diff --git a/homeassistant/components/switch/tellstick.py b/homeassistant/components/switch/tellstick.py index 42ce7af9926..96b10a0a977 100644 --- a/homeassistant/components/switch/tellstick.py +++ b/homeassistant/components/switch/tellstick.py @@ -48,7 +48,6 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): switches.append( TellstickSwitchDevice(switch, signal_repetitions)) - # pylint: disable=unused-argument def _device_event_callback(id_, method, data, cid): """ Called from the TelldusCore library to update one device """ for switch_device in switches: