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