Fix PEP257 issues

pull/1503/head
Fabian Affolter 2016-03-07 19:21:26 +01:00
parent cfd65e48cb
commit 5ba9ac6465
2 changed files with 7 additions and 6 deletions
config/custom_components

View File

@ -101,9 +101,10 @@ def track_devices(hass, entity_id, old_state, new_state):
@track_time_change(hour=7, minute=0, second=0)
def wake_up(hass, now):
"""
Turn it on in the morning (7 AM) if there are people home and
it is not already on.
"""Turn light on in the morning.
Turn the light on at 7 AM if there are people home and it is not already
on.
"""
if not TARGET_ID:
return
@ -126,8 +127,9 @@ def all_lights_off(hass, entity_id, old_state, new_state):
@service(DOMAIN, SERVICE_FLASH)
def flash_service(hass, call):
"""
Service that will turn the target off for 10 seconds if on and vice versa.
"""Service that will toggle the target.
Set the light to off for 10 seconds if on and vice versa.
"""
if not TARGET_ID:
return

View File

@ -20,7 +20,6 @@ DEPENDENCIES = []
def setup(hass, config):
"""Setup our skeleton component."""
# States are in the format DOMAIN.OBJECT_ID.
hass.states.set('hello_world.Hello_World', 'Works!')