Correct typing in rediscovery tests (#127777)

This commit is contained in:
Erik Montnemery 2024-10-07 08:42:04 +02:00 committed by GitHub
parent 605aaf955c
commit 7ec911c4df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 9 additions and 9 deletions

View File

@ -1346,7 +1346,7 @@ async def test_set_fallback_interval_big(hass: HomeAssistant) -> None:
async def test_bluetooth_rediscover(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
) -> None:
"""Test we reinitiate flows when an ignored config entry is removed."""
@ -1524,7 +1524,7 @@ async def test_bluetooth_rediscover(
async def test_bluetooth_rediscover_no_match(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
entry_unique_id: str,
) -> None:

View File

@ -1338,7 +1338,7 @@ async def test_ignore_flow(
hass: HomeAssistant,
hass_ws_client: WebSocketGenerator,
flow_context: dict,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
) -> None:
"""Test we can ignore a flow."""
assert await async_setup_component(hass, "config", {})

View File

@ -1212,7 +1212,7 @@ async def test_aiodiscover_finds_new_hosts_after_interval(hass: HomeAssistant) -
async def test_dhcp_rediscover(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
) -> None:
"""Test we reinitiate flows when an ignored config entry is removed."""
@ -1303,7 +1303,7 @@ async def test_dhcp_rediscover(
async def test_dhcp_rediscover_no_match(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
entry_unique_id: str,
) -> None:

View File

@ -952,7 +952,7 @@ async def test_ssdp_rediscover(
aioclient_mock: AiohttpClientMocker,
mock_flow_init,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
) -> None:
"""Test we reinitiate flows when an ignored config entry is removed."""
@ -1048,7 +1048,7 @@ async def test_ssdp_rediscover_no_match(
hass: HomeAssistant,
mock_flow_init,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
entry_unique_id: str,
) -> None:

View File

@ -1467,7 +1467,7 @@ async def test_zeroconf_removed(hass: HomeAssistant) -> None:
async def test_zeroconf_rediscover(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
) -> None:
"""Test we reinitiate flows when an ignored config entry is removed."""
@ -1583,7 +1583,7 @@ async def test_zeroconf_rediscover(
async def test_zeroconf_rediscover_no_match(
hass: HomeAssistant,
entry_domain: str,
entry_discovery_keys: tuple,
entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str,
entry_unique_id: str,
) -> None: