From ba7e06072d3d42f8eaba60419f0229d6c13ef8e0 Mon Sep 17 00:00:00 2001 From: Gustav Ahlberg Date: Mon, 2 Feb 2015 07:39:11 +0100 Subject: [PATCH] fixed flake8 E302 expected 2 blank lines, found 1 --- homeassistant/components/sun.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/sun.py b/homeassistant/components/sun.py index df452db3b78..e12b4b2037b 100644 --- a/homeassistant/components/sun.py +++ b/homeassistant/components/sun.py @@ -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. """