Locative tests to use aiohttp test utils (#6838)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2017-03-29 22:19:58 -07:00
1 parent 9de4c2b056
commit bfe0aee468
2 files changed
+166 -190

No files matched your search

@@ -18,6 +18,7 @@ from homeassistant.components.device_tracker import ( # NOQA
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['http']
URL = '/api/locative'
def setup_scanner(hass, config, see, discovery_info=None):
@@ -30,7 +31,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
class LocativeView(HomeAssistantView):
"""View to handle locative requests."""
url = '/api/locative'
url = URL
name = 'api:locative'
def __init__(self, see):