mirror of
https://github.com/home-assistant/core.git
synced 2025-11-09 02:49:40 +00:00
Deprecate http.api_password (#21884)
* Deprecated http.api_password * Deprecated ApiConfig.api_password GitHub Drafted PR would trigger CI after changed it to normal PR. I have to commit a comment change to trigger it * Trigger CI * Adjust if- elif chain in auth middleware
This commit is contained in:
committed by
Paulus Schoutsen
parent
7ec7e51f70
commit
fe1840f901
@@ -407,14 +407,10 @@ def _listen_count(hass):
|
||||
|
||||
|
||||
async def test_api_error_log(hass, aiohttp_client, hass_access_token,
|
||||
hass_admin_user, legacy_auth):
|
||||
hass_admin_user):
|
||||
"""Test if we can fetch the error log."""
|
||||
hass.data[DATA_LOGGING] = '/some/path'
|
||||
await async_setup_component(hass, 'api', {
|
||||
'http': {
|
||||
'api_password': 'yolo'
|
||||
}
|
||||
})
|
||||
await async_setup_component(hass, 'api', {})
|
||||
client = await aiohttp_client(hass.http.app)
|
||||
|
||||
resp = await client.get(const.URL_API_ERROR_LOG)
|
||||
|
||||
Reference in New Issue
Block a user