Tweak hassfest codeowners script (#68382)

This commit is contained in:
Robert Hillis 2022-03-20 17:04:55 -04:00 committed by GitHub
parent 3c10ac308d
commit 40484a3483
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()}")