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:
epenet 2023-02-02 22:29:57 +01:00 committed by GitHub
parent 8bff95014c
commit a79be493e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 179 additions and 178 deletions

View file

@ -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)