Adjust hass_client type hint in integration tests (#86954)
* Adjust hass_client type hint in integration tests * Adjust hass_client_no_auth * Fix rebase
This commit is contained in:
parent
8bff95014c
commit
a79be493e5
54 changed files with 179 additions and 178 deletions
|
@ -30,7 +30,7 @@ from homeassistant.helpers import config_entry_oauth2_flow
|
|||
from homeassistant.setup import async_setup_component
|
||||
|
||||
from tests.common import MockConfigEntry, mock_platform
|
||||
from tests.typing import WebSocketGenerator
|
||||
from tests.typing import ClientSessionGenerator, WebSocketGenerator
|
||||
|
||||
CLIENT_ID = "some-client-id"
|
||||
CLIENT_SECRET = "some-client-secret"
|
||||
|
@ -171,7 +171,9 @@ class OAuthFixture:
|
|||
|
||||
@pytest.fixture
|
||||
async def oauth_fixture(
|
||||
hass: HomeAssistant, hass_client_no_auth: Any, aioclient_mock: Any
|
||||
hass: HomeAssistant,
|
||||
hass_client_no_auth: ClientSessionGenerator,
|
||||
aioclient_mock: Any,
|
||||
) -> OAuthFixture:
|
||||
"""Fixture for testing the OAuth flow."""
|
||||
return OAuthFixture(hass, hass_client_no_auth, aioclient_mock)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue