Fixed style issues
parent
2ca3541eac
commit
ca73295dd1
|
@ -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."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue