From cb54fb5a6411d12f96bed22b505224d0138210fa Mon Sep 17 00:00:00 2001 From: "Alfie \"Azelphur\" Day" Date: Tue, 19 May 2015 02:31:30 +0100 Subject: [PATCH] More pylint fixes --- homeassistant/components/light/limitlessled.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/light/limitlessled.py b/homeassistant/components/light/limitlessled.py index ba9ac9b3a05..36492d4d10f 100644 --- a/homeassistant/components/light/limitlessled.py +++ b/homeassistant/components/light/limitlessled.py @@ -47,8 +47,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): LimitlessLED( led, i, - config['group_%d_name' % (i)], - STATE_OFF + config['group_%d_name' % (i)] ) ) @@ -58,7 +57,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None): class LimitlessLED(ToggleEntity): """ Represents a LimitlessLED light """ - def __init__(self, led, group, name, state, brightness=180): + def __init__(self, led, group, name): self.led = led self.group = group @@ -66,7 +65,7 @@ class LimitlessLED(ToggleEntity): self.led.off(self.group) self._name = name or DEVICE_DEFAULT_NAME - self._state = state + self._state = STATE_OFF self._brightness = brightness @property