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
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( async def test_bluetooth_rediscover(
hass: HomeAssistant, hass: HomeAssistant,
entry_domain: str, entry_domain: str,
entry_discovery_keys: tuple, entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str, entry_source: str,
) -> None: ) -> None:
"""Test we reinitiate flows when an ignored config entry is removed.""" """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( async def test_bluetooth_rediscover_no_match(
hass: HomeAssistant, hass: HomeAssistant,
entry_domain: str, entry_domain: str,
entry_discovery_keys: tuple, entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str, entry_source: str,
entry_unique_id: str, entry_unique_id: str,
) -> None: ) -> None:

View File

@@ -1338,7 +1338,7 @@ async def test_ignore_flow(
hass: HomeAssistant, hass: HomeAssistant,
hass_ws_client: WebSocketGenerator, hass_ws_client: WebSocketGenerator,
flow_context: dict, flow_context: dict,
entry_discovery_keys: tuple, entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
) -> None: ) -> None:
"""Test we can ignore a flow.""" """Test we can ignore a flow."""
assert await async_setup_component(hass, "config", {}) 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( async def test_dhcp_rediscover(
hass: HomeAssistant, hass: HomeAssistant,
entry_domain: str, entry_domain: str,
entry_discovery_keys: tuple, entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str, entry_source: str,
) -> None: ) -> None:
"""Test we reinitiate flows when an ignored config entry is removed.""" """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( async def test_dhcp_rediscover_no_match(
hass: HomeAssistant, hass: HomeAssistant,
entry_domain: str, entry_domain: str,
entry_discovery_keys: tuple, entry_discovery_keys: dict[str, tuple[DiscoveryKey, ...]],
entry_source: str, entry_source: str,
entry_unique_id: str, entry_unique_id: str,
) -> None: ) -> None:

View File

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

View File

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