mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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
|
||||
|
||||
"""
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user