Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
amelchio committed Apr 20, 2017
1 parent d8541e6 commit 7ce503c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions homeassistant/components/light/lifx/effects.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
"""
Support for light effects for the LIFX light platform.
"""

"""Support for light effects for the LIFX light platform."""
import logging
import asyncio
import random
Expand Down Expand Up @@ -67,6 +63,7 @@
vol.Optional(ATTR_POWER_ON, default=False): cv.boolean,
})


def setup(hass, lifx_manager):
"""Register the LIFX effects as hass service calls."""
@asyncio.coroutine
Expand All @@ -80,8 +77,8 @@ def async_service_handle(service):
devices = list(lifx_manager.entities.values())

if devices:
yield from start_effect(hass, devices, \
service.service, **service.data)
yield from start_effect(hass, devices,
service.service, **service.data)

descriptions = load_yaml_config_file(
path.join(path.dirname(__file__), 'services.yaml'))
Expand All @@ -106,6 +103,7 @@ def async_service_handle(service):
descriptions.get(SERVICE_EFFECT_STOP),
schema=LIFX_EFFECT_STOP_SCHEMA)


@asyncio.coroutine
def start_effect(hass, devices, service, **data):
"""Start a light effect."""
Expand All @@ -125,6 +123,7 @@ def start_effect(hass, devices, service, **data):

hass.async_add_job(effect.async_perform(**data))


@asyncio.coroutine
def default_effect(light, **kwargs):
"""Start an effect with default parameters."""
Expand All @@ -141,6 +140,7 @@ def default_effect(light, **kwargs):
data[ATTR_BRIGHTNESS] = 255
yield from light.hass.services.async_call(DOMAIN, service, data)


def effect_list():
"""Return the list of supported effects."""
return [
Expand Down

0 comments on commit 7ce503c

Please sign in to comment.