mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix some code styling violations
This commit is contained in:
@@ -21,7 +21,6 @@ light:
|
|||||||
group_4_name: Kitchen
|
group_4_name: Kitchen
|
||||||
|
|
||||||
"""
|
"""
|
||||||
import random
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.helpers.entity import ToggleEntity
|
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):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
|
""" Gets the LimitlessLED lights. """
|
||||||
try:
|
try:
|
||||||
import ledcontroller
|
import ledcontroller
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@@ -56,6 +56,8 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class LimitlessLED(ToggleEntity):
|
class LimitlessLED(ToggleEntity):
|
||||||
|
""" Represents a LimitlessLED light """
|
||||||
|
|
||||||
def __init__(self, led, group, name, state, brightness=180):
|
def __init__(self, led, group, name, state, brightness=180):
|
||||||
self.led = led
|
self.led = led
|
||||||
self.group = group
|
self.group = group
|
||||||
|
Reference in New Issue
Block a user