diff --git a/script/hassfest/codeowners.py b/script/hassfest/codeowners.py index cf8fb02b989..09498cfca01 100644 --- a/script/hassfest/codeowners.py +++ b/script/hassfest/codeowners.py @@ -56,7 +56,7 @@ def generate_and_validate(integrations: dict[str, Integration], config: Config): parts.append(f"homeassistant/components/{domain}/* {' '.join(codeowners)}") - if (config.root / "tests/components" / domain).exists(): + if (config.root / "tests/components" / domain / "__init__.py").exists(): parts.append(f"tests/components/{domain}/* {' '.join(codeowners)}") parts.append(f"\n{INDIVIDUAL_FILES.strip()}")