Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions homeassistant/components/automation/geo_location.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""
Offer geo location automation rules.
Offer geolocation automation rules.

For more details about this automation trigger, please refer to the
documentation at
https://home-assistant.io/docs/automation/trigger/#geo-location-trigger
https://home-assistant.io/docs/automation/trigger/#geolocation-trigger
"""
import voluptuous as vol

Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/geo_location/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Geo Location component.
Geolocation component.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/geo_location/
Expand All @@ -22,21 +22,21 @@

ENTITY_ID_FORMAT = DOMAIN + '.{}'

GROUP_NAME_ALL_EVENTS = 'All Geo Location Events'
GROUP_NAME_ALL_EVENTS = 'All Geolocation Events'

SCAN_INTERVAL = timedelta(seconds=60)


async def async_setup(hass, config):
"""Set up the Geo Location component."""
"""Set up the Geolocation component."""
component = EntityComponent(
_LOGGER, DOMAIN, hass, SCAN_INTERVAL, GROUP_NAME_ALL_EVENTS)
await component.async_setup(config)
return True


class GeoLocationEvent(Entity):
"""This represents an external event with an associated geo location."""
"""This represents an external event with an associated geolocation."""

@property
def state(self):
Expand Down
12 changes: 6 additions & 6 deletions homeassistant/components/geo_location/demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Demo platform for the geo location component.
Demo platform for the geolocation component.

For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
Expand Down Expand Up @@ -30,15 +30,15 @@


def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Demo geo locations."""
"""Set up the Demo geolocations."""
DemoManager(hass, add_entities)


class DemoManager:
"""Device manager for demo geo location events."""
"""Device manager for demo geolocation events."""

def __init__(self, hass, add_entities):
"""Initialise the demo geo location event manager."""
"""Initialise the demo geolocation event manager."""
self._hass = hass
self._add_entities = add_entities
self._managed_devices = []
Expand Down Expand Up @@ -91,7 +91,7 @@ def _update(self, count=1):


class DemoGeoLocationEvent(GeoLocationEvent):
"""This represents a demo geo location event."""
"""This represents a demo geolocation event."""

def __init__(self, name, distance, latitude, longitude,
unit_of_measurement):
Expand All @@ -114,7 +114,7 @@ def name(self) -> Optional[str]:

@property
def should_poll(self):
"""No polling needed for a demo geo location event."""
"""No polling needed for a demo geolocation event."""
return False

@property
Expand Down