More pylint fixes

pull/128/head
Alfie "Azelphur" Day 2015-05-19 02:31:30 +01:00 committed by Fabian Affolter
parent 0e9dc61805
commit f52412df41
1 changed files with 3 additions and 4 deletions

View File

@ -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