From a8c2cc4c33094daa3062bf28ce431c090d9a3440 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 25 Oct 2015 23:38:24 +0100 Subject: [PATCH] rework for flake8 errors done --- homeassistant/components/light/mqtt.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/light/mqtt.py b/homeassistant/components/light/mqtt.py index 290ea6813ee..078a9a4075f 100644 --- a/homeassistant/components/light/mqtt.py +++ b/homeassistant/components/light/mqtt.py @@ -30,6 +30,8 @@ DEFAULT_COMMAND_RGB = "homeassistant/light/rgb/set" DEPENDENCIES = ['mqtt'] # pylint: disable=unused-argument + + def setup_platform(hass, config, add_devices_callback, discovery_info=None): """ Add MQTT Light. """ @@ -52,10 +54,12 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): config.get('payload_off', DEFAULT_PAYLOAD_OFF), config.get('brightness', DEFAULT_BRIGHTNESS))]) + class MqttLight(Light): """ Provides a demo switch. """ - # pylint: disable=too-many-instance-attributes,too-many-arguments,too-many-locals,bad-builtin + # pylint: disable=too-many-instance-attributes + # pylint: disable=too-many-arguments,too-many-locals,bad-builtin # Eight is reasonable in this case. def __init__(self, hass, name,