Fix aiohttp deprecation warnings (#13240)
* Fix aiohttp deprecation warnings * Fix Ring deprecation warning * Lint
This commit is contained in:
parent
a86bf81768
commit
89a19c89a7
45 changed files with 221 additions and 225 deletions
|
@ -7,14 +7,14 @@ import homeassistant.components.prometheus as prometheus
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def prometheus_client(loop, hass, test_client):
|
||||
"""Initialize a test_client with Prometheus component."""
|
||||
def prometheus_client(loop, hass, aiohttp_client):
|
||||
"""Initialize a aiohttp_client with Prometheus component."""
|
||||
assert loop.run_until_complete(async_setup_component(
|
||||
hass,
|
||||
prometheus.DOMAIN,
|
||||
{},
|
||||
))
|
||||
return loop.run_until_complete(test_client(hass.http.app))
|
||||
return loop.run_until_complete(aiohttp_client(hass.http.app))
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue