mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 14:47:38 +00:00
Remove globally disabled pylint issue and update docstrings (#7111)
This commit is contained in:
parent
b0ffc55cfa
commit
c43a3efabd
@ -29,13 +29,13 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
||||
|
||||
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user