mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Legacy api fix (#18733)
* Set user for API password requests * Fix tests * Fix typing
This commit is contained in:
@@ -23,7 +23,7 @@ NPR_NEWS_MP3_URL = "https://pd.npr.org/anon.npr-mp3/npr/news/newscast.mp3"
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def alexa_client(loop, hass, aiohttp_client):
|
||||
def alexa_client(loop, hass, hass_client):
|
||||
"""Initialize a Home Assistant server for testing this module."""
|
||||
@callback
|
||||
def mock_service(call):
|
||||
@@ -95,7 +95,7 @@ def alexa_client(loop, hass, aiohttp_client):
|
||||
},
|
||||
}
|
||||
}))
|
||||
return loop.run_until_complete(aiohttp_client(hass.http.app))
|
||||
return loop.run_until_complete(hass_client())
|
||||
|
||||
|
||||
def _intent_req(client, data=None):
|
||||
|
||||
Reference in New Issue
Block a user