From 5c2c8a5d37c1e1c2d3c1c5e03a0b30f5b15fa7d2 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Tue, 8 Jan 2019 08:37:20 +1100 Subject: [PATCH 1/3] fixed geolocation naming in comments --- homeassistant/components/automation/geo_location.py | 2 +- homeassistant/components/geo_location/__init__.py | 6 +++--- homeassistant/components/geo_location/demo.py | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/automation/geo_location.py b/homeassistant/components/automation/geo_location.py index 537646fefc15a..31ee543086f6c 100644 --- a/homeassistant/components/automation/geo_location.py +++ b/homeassistant/components/automation/geo_location.py @@ -1,5 +1,5 @@ """ -Offer geo location automation rules. +Offer geolocation automation rules. For more details about this automation trigger, please refer to the documentation at diff --git a/homeassistant/components/geo_location/__init__.py b/homeassistant/components/geo_location/__init__.py index 495c9e1744b42..3aa0d27d283bd 100644 --- a/homeassistant/components/geo_location/__init__.py +++ b/homeassistant/components/geo_location/__init__.py @@ -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/ @@ -28,7 +28,7 @@ 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) @@ -36,7 +36,7 @@ async def async_setup(hass, config): 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): diff --git a/homeassistant/components/geo_location/demo.py b/homeassistant/components/geo_location/demo.py index 6c5cc2fe147d9..995cbeefa36a4 100644 --- a/homeassistant/components/geo_location/demo.py +++ b/homeassistant/components/geo_location/demo.py @@ -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/ @@ -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 = [] @@ -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): @@ -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 From c726e1a5b9086d915d1dfb90330f43b051e88ea5 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Tue, 8 Jan 2019 08:37:48 +1100 Subject: [PATCH 2/3] fixed geolocation naming in default group name --- homeassistant/components/geo_location/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/geo_location/__init__.py b/homeassistant/components/geo_location/__init__.py index 3aa0d27d283bd..73a97d4666d54 100644 --- a/homeassistant/components/geo_location/__init__.py +++ b/homeassistant/components/geo_location/__init__.py @@ -22,7 +22,7 @@ ENTITY_ID_FORMAT = DOMAIN + '.{}' -GROUP_NAME_ALL_EVENTS = 'All Geo Location Events' +GROUP_NAME_ALL_EVENTS = 'All Geolocation Events' SCAN_INTERVAL = timedelta(seconds=60) From 3c052f5bb38470c1c25f7b9ba2d5f7d5d84fae81 Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Tue, 8 Jan 2019 08:38:58 +1100 Subject: [PATCH 3/3] fixed link to documentation (after https://github.com/home-assistant/home-assistant.io/pull/8086) --- homeassistant/components/automation/geo_location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/automation/geo_location.py b/homeassistant/components/automation/geo_location.py index 31ee543086f6c..33ef00da38068 100644 --- a/homeassistant/components/automation/geo_location.py +++ b/homeassistant/components/automation/geo_location.py @@ -3,7 +3,7 @@ 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