Remove legacy_api_password auth provider (#119976)
This commit is contained in:
parent
7d14b9c5c8
commit
bae008b0e2
11 changed files with 14 additions and 285 deletions
|
@ -6,9 +6,7 @@ import aiohttp
|
|||
from aiohttp import WSMsgType
|
||||
import pytest
|
||||
|
||||
from homeassistant.auth.providers.legacy_api_password import (
|
||||
LegacyApiPasswordAuthProvider,
|
||||
)
|
||||
from homeassistant.auth.providers.homeassistant import HassAuthProvider
|
||||
from homeassistant.components.websocket_api.auth import (
|
||||
TYPE_AUTH,
|
||||
TYPE_AUTH_INVALID,
|
||||
|
@ -51,7 +49,7 @@ def track_connected(hass):
|
|||
async def test_auth_events(
|
||||
hass: HomeAssistant,
|
||||
no_auth_websocket_client,
|
||||
legacy_auth: LegacyApiPasswordAuthProvider,
|
||||
local_auth: HassAuthProvider,
|
||||
hass_access_token: str,
|
||||
track_connected,
|
||||
) -> None:
|
||||
|
@ -174,7 +172,7 @@ async def test_auth_active_with_password_not_allow(
|
|||
async def test_auth_legacy_support_with_password(
|
||||
hass: HomeAssistant,
|
||||
hass_client_no_auth: ClientSessionGenerator,
|
||||
legacy_auth: LegacyApiPasswordAuthProvider,
|
||||
local_auth: HassAuthProvider,
|
||||
) -> None:
|
||||
"""Test authenticating with a token."""
|
||||
assert await async_setup_component(hass, "websocket_api", {})
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
"""Test cases for the API stream sensor."""
|
||||
|
||||
from homeassistant.auth.providers.legacy_api_password import (
|
||||
LegacyApiPasswordAuthProvider,
|
||||
)
|
||||
from homeassistant.auth.providers.homeassistant import HassAuthProvider
|
||||
from homeassistant.bootstrap import async_setup_component
|
||||
from homeassistant.components.websocket_api.auth import TYPE_AUTH_REQUIRED
|
||||
from homeassistant.components.websocket_api.http import URL
|
||||
|
@ -17,7 +15,7 @@ async def test_websocket_api(
|
|||
hass: HomeAssistant,
|
||||
hass_client_no_auth: ClientSessionGenerator,
|
||||
hass_access_token: str,
|
||||
legacy_auth: LegacyApiPasswordAuthProvider,
|
||||
local_auth: HassAuthProvider,
|
||||
) -> None:
|
||||
"""Test API streams."""
|
||||
await async_setup_component(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue