mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix some code styling violations
This commit is contained in:
parent
c43e014304
commit
e2b08a1758
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user