Some more improvement

This commit is contained in:
Fabian Affolter 2016-07-28 07:14:50 +02:00
parent d740b90d69
commit 8683e077fc
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -39,7 +39,7 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices, discovery_info=None): def setup_platform(hass, config, add_devices, discovery_info=None):
"""Initialize Awesome Light platform.""" """Setup the Awesome Light platform."""
import awesomelights import awesomelights
# Validate passed in config # Validate passed in config
@ -63,8 +63,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
# Add devices # Add devices
add_devices(AwesomeLight(light) for light in hub.lights()) add_devices(AwesomeLight(light) for light in hub.lights())
class AwesomeLight(Light): class AwesomeLight(Light):
"""Representation an AwesomeLight in Home Assistant.""" """Representation of an Awesome Light."""
def __init__(self, light): def __init__(self, light):
"""Initialize an AwesomeLight.""" """Initialize an AwesomeLight."""