Allow hassfest to validate specific integrations (#34277)

This commit is contained in:
Paulus Schoutsen 2020-04-16 09:00:04 -07:00 committed by GitHub
parent 94a3cec4bf
commit 371bea03d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 88 additions and 22 deletions

View file

@ -68,6 +68,9 @@ def validate(integrations: Dict[str, Integration], config: Config):
config_flow_path = config.root / "homeassistant/generated/config_flows.py"
config.cache["config_flow"] = content = generate_and_validate(integrations)
if config.specific_integrations:
return
with open(str(config_flow_path)) as fp:
if fp.read().strip() != content:
config.add_error(