From c43a3efabd43b7131bab54c181ecb18e700e3ff8 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 15 Apr 2017 00:32:04 +0200 Subject: [PATCH] Remove globally disabled pylint issue and update docstrings (#7111) --- homeassistant/components/device_tracker/locative.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/device_tracker/locative.py b/homeassistant/components/device_tracker/locative.py index 255440a18e1..668ee6dd8a0 100644 --- a/homeassistant/components/device_tracker/locative.py +++ b/homeassistant/components/device_tracker/locative.py @@ -22,20 +22,20 @@ URL = '/api/locative' def setup_scanner(hass, config, see, discovery_info=None): - """Setup an endpoint for the Locative application.""" + """Set up an endpoint for the Locative application.""" hass.http.register_view(LocativeView(see)) return True class LocativeView(HomeAssistantView): - """View to handle locative requests.""" + """View to handle Locative requests.""" url = URL name = 'api:locative' def __init__(self, see): - """Initialize Locative url endpoints.""" + """Initialize Locative URL endpoints.""" self.see = see @asyncio.coroutine @@ -52,7 +52,6 @@ class LocativeView(HomeAssistantView): return res @asyncio.coroutine - # pylint: disable=too-many-return-statements def _handle(self, hass, data): """Handle locative request.""" if 'latitude' not in data or 'longitude' not in data: