diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index 1a665df19f5..543bf616952 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -104,6 +104,12 @@ SCALE_RULES = { VALIDATORS = {rule.name: rule.validator for rule in ALL_RULES if rule.validator} +RULE_URL = ( + "Please check the documentation at " + "https://developers.home-assistant.io/docs/core/" + "integration-quality-scale/rules/{rule_name}/" +) + INTEGRATIONS_WITHOUT_QUALITY_SCALE_FILE = [ "abode", "accuweather", @@ -1367,6 +1373,7 @@ def validate_iqs_file(config: Config, integration: Integration) -> None: ): for error in errors: integration.add_error("quality_scale", f"[{rule_name}] {error}") + integration.add_error("quality_scale", RULE_URL.format(rule_name=rule_name)) # An integration must have all the necessary rules for the declared # quality scale, and all the rules below.