parent
ae9e3d83d7
commit
d1a621601d
42 changed files with 307 additions and 473 deletions
|
@ -7,14 +7,14 @@ import homeassistant.components.prometheus as prometheus
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def prometheus_client(loop, hass, aiohttp_client):
|
||||
"""Initialize an aiohttp_client with Prometheus component."""
|
||||
def prometheus_client(loop, hass, hass_client):
|
||||
"""Initialize an hass_client with Prometheus component."""
|
||||
assert loop.run_until_complete(async_setup_component(
|
||||
hass,
|
||||
prometheus.DOMAIN,
|
||||
{prometheus.DOMAIN: {}},
|
||||
))
|
||||
return loop.run_until_complete(aiohttp_client(hass.http.app))
|
||||
return loop.run_until_complete(hass_client())
|
||||
|
||||
|
||||
@asyncio.coroutine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue