1 parent
ae9e3d83d7
commit
d1a621601d
42 files changed
+307
-473
No files matched your search
@@ -19,7 +19,7 @@ def _url(data=None):
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def locative_client(loop, hass, aiohttp_client):
|
||||
def locative_client(loop, hass, hass_client):
|
||||
"""Locative mock client."""
|
||||
assert loop.run_until_complete(async_setup_component(
|
||||
hass, device_tracker.DOMAIN, {
|
||||
@@ -29,7 +29,7 @@ def locative_client(loop, hass, aiohttp_client):
|
||||
}))
|
||||
|
||||
with patch('homeassistant.components.device_tracker.update_config'):
|
||||
yield loop.run_until_complete(aiohttp_client(hass.http.app))
|
||||
yield loop.run_until_complete(hass_client())
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
@@ -13,7 +13,7 @@ from homeassistant.components.device_tracker.meraki import URL
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def meraki_client(loop, hass, aiohttp_client):
|
||||
def meraki_client(loop, hass, hass_client):
|
||||
"""Meraki mock client."""
|
||||
assert loop.run_until_complete(async_setup_component(
|
||||
hass, device_tracker.DOMAIN, {
|
||||
@@ -25,7 +25,7 @@ def meraki_client(loop, hass, aiohttp_client):
|
||||
}
|
||||
}))
|
||||
|
||||
yield loop.run_until_complete(aiohttp_client(hass.http.app))
|
||||
yield loop.run_until_complete(hass_client())
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
||||
Reference in new issue
Block a user