From ca73295dd1d5978357d884dc813425980dc99abd Mon Sep 17 00:00:00 2001 From: NMA Date: Thu, 25 Aug 2016 21:35:04 +0530 Subject: [PATCH] Fixed style issues --- homeassistant/components/zone.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/zone.py b/homeassistant/components/zone.py index ba63de00823..a32947d180c 100644 --- a/homeassistant/components/zone.py +++ b/homeassistant/components/zone.py @@ -32,6 +32,7 @@ ICON_IMPORT = 'mdi:import' entities = set() _LOGGER = logging.getLogger(__name__) + def active_zone(hass, latitude, longitude, radius=0): """Find the active zone for given latitude, longitude.""" # Sort entity IDs so that we are deterministic if equal distance to 2 zones @@ -108,6 +109,7 @@ def setup(hass, config): return True + # Add a zone to the existing set def add_zone(hass, name, latitude, longitude, radius): """Add a zone from other components""" @@ -122,6 +124,7 @@ def add_zone(hass, name, latitude, longitude, radius): else: _LOGGER.info("Zone already exists") + class Zone(Entity): """Representation of a Zone."""