Fix PEP257 issues

This commit is contained in:
Fabian Affolter 2016-03-07 19:21:26 +01:00
parent cfd65e48cb
commit 5ba9ac6465
2 changed files with 7 additions and 6 deletions

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

View file

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