Add ClientSessionGenerator type hints in tests (#118377)

This commit is contained in:
epenet
2024-05-29 14:49:14 +02:00
committed by GitHub
parent d10362e226
commit 461ac1e0bc
26 changed files with 127 additions and 47 deletions
+3 -1
View File
@@ -16,7 +16,9 @@ from tests.typing import ClientSessionGenerator
@pytest.fixture
async def uploaded_file_dir(hass: HomeAssistant, hass_client) -> Path:
async def uploaded_file_dir(
hass: HomeAssistant, hass_client: ClientSessionGenerator
) -> Path:
"""Test uploading and using a file."""
assert await async_setup_component(hass, "file_upload", {})
client = await hass_client()