1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add tests for component configuration with extra keys (#103959)

This commit is contained in:
Erik Montnemery
2023-11-14 11:26:22 +01:00
committed by GitHub
parent fe15ed4a28
commit 44c1cef42e
13 changed files with 95 additions and 43 deletions

View File

@@ -133,7 +133,7 @@ async def mock_non_adr_0007_integration(hass) -> None:
async def mock_adr_0007_integrations(hass) -> list[Integration]:
"""Mock ADR-0007 compliant integrations."""
integrations = []
for domain in ["adr_0007_1", "adr_0007_2", "adr_0007_3"]:
for domain in ["adr_0007_1", "adr_0007_2", "adr_0007_3", "adr_0007_4"]:
adr_0007_config_schema = vol.Schema(
{
domain: vol.Schema(
@@ -1498,7 +1498,13 @@ async def test_component_config_validation_error(
)
config = await config_util.async_hass_config_yaml(hass)
for domain in ["iot_domain", "adr_0007_1", "adr_0007_2", "adr_0007_3"]:
for domain in [
"iot_domain",
"adr_0007_1",
"adr_0007_2",
"adr_0007_3",
"adr_0007_4",
]:
integration = await async_get_integration(hass, domain)
await config_util.async_process_component_config(
hass,