fixed flake8 E302 expected 2 blank lines, found 1

This commit is contained in:
Gustav Ahlberg 2015-02-02 07:39:11 +01:00
parent 7e9a254d87
commit ba7e06072d

View file

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