fixed flake8 E302 expected 2 blank lines, found 1

pull/25/head
Gustav Ahlberg 2015-02-02 07:39:11 +01:00
parent 7e9a254d87
commit ba7e06072d
1 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ STATE_ATTR_NEXT_SETTING = "next_setting"
_LOGGER = logging.getLogger(__name__)
def is_on(hass, entity_id=None):
""" Returns if the sun is currently up based on the statemachine. """
entity_id = entity_id or ENTITY_ID
@ -156,6 +157,7 @@ which event (sunset or sunrise) and the offset.
"""
def create_event_listener(schedule, event_listener_data):
""" Create a sun event listener based on the description. """
@ -177,6 +179,7 @@ def create_event_listener(schedule, event_listener_data):
return SunriseEventListener(schedule, service, offset, negative_offset)
# pylint: disable=too-few-public-methods
class SunEventListener(ServiceEventListener):
""" This is the base class for sun event listeners. """