mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 06:37:52 +00:00
Fixed style issues
This commit is contained in:
parent
2ca3541eac
commit
ca73295dd1
@ -32,6 +32,7 @@ ICON_IMPORT = 'mdi:import'
|
|||||||
entities = set()
|
entities = set()
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def active_zone(hass, latitude, longitude, radius=0):
|
def active_zone(hass, latitude, longitude, radius=0):
|
||||||
"""Find the active zone for given latitude, longitude."""
|
"""Find the active zone for given latitude, longitude."""
|
||||||
# Sort entity IDs so that we are deterministic if equal distance to 2 zones
|
# Sort entity IDs so that we are deterministic if equal distance to 2 zones
|
||||||
@ -108,6 +109,7 @@ def setup(hass, config):
|
|||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
# Add a zone to the existing set
|
# Add a zone to the existing set
|
||||||
def add_zone(hass, name, latitude, longitude, radius):
|
def add_zone(hass, name, latitude, longitude, radius):
|
||||||
"""Add a zone from other components"""
|
"""Add a zone from other components"""
|
||||||
@ -122,6 +124,7 @@ def add_zone(hass, name, latitude, longitude, radius):
|
|||||||
else:
|
else:
|
||||||
_LOGGER.info("Zone already exists")
|
_LOGGER.info("Zone already exists")
|
||||||
|
|
||||||
|
|
||||||
class Zone(Entity):
|
class Zone(Entity):
|
||||||
"""Representation of a Zone."""
|
"""Representation of a Zone."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user