Fixed style issues

pull/2973/head
NMA 2016-08-25 21:35:04 +05:30
parent 2ca3541eac
commit ca73295dd1
1 changed files with 3 additions and 0 deletions

View File

@ -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."""