Fix some code styling violations

This commit is contained in:
Alfie "Azelphur" Day
2015-05-19 02:09:34 +01:00
parent c43e014304
commit e2b08a1758

View File

@@ -21,7 +21,6 @@ light:
group_4_name: Kitchen
"""
import random
import logging
from homeassistant.helpers.entity import ToggleEntity
@@ -32,6 +31,7 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Gets the LimitlessLED lights. """
try:
import ledcontroller
except ImportError:
@@ -56,6 +56,8 @@ 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):
self.led = led
self.group = group