1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add type hints to integration tests (part 5) (#87850)

This commit is contained in:
epenet
2023-02-12 19:39:48 +01:00
committed by GitHub
parent 00c356e1ce
commit 728f62b1ec
50 changed files with 563 additions and 332 deletions

View File

@@ -18,7 +18,9 @@ from tests.common import MockConfigEntry
(True, False, "create_entry", config_entries.ConfigEntryState.SETUP_RETRY, ""),
],
)
async def test_flow(hass, first_con, second_con, exp_type, exp_result, exp_reason):
async def test_flow(
hass: HomeAssistant, first_con, second_con, exp_type, exp_result, exp_reason
) -> None:
"""Run a flow with or without errors and return result."""
host = "1.2.3.4"
with patch(