Change to rule slugs (#131043)

This commit is contained in:
Joost Lekkerkerker 2024-11-20 17:43:02 +01:00 committed by GitHub
parent c56f377cd5
commit 514af896f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 58 additions and 2 deletions

View File

@ -1,2 +1,2 @@
rules: rules:
IQS001: done config-flow: done

View File

@ -10,11 +10,66 @@ from homeassistant.util.yaml import load_yaml_dict
from .model import Config, Integration from .model import Config, Integration
RULES = [
"action-exceptions",
"action-setup",
"appropriate-polling",
"async-dependency",
"brands",
"common-modules",
"config-entry-unloading",
"config-flow",
"config-flow-test-coverage",
"dependency-transparency",
"devices",
"diagnostics",
"discovery",
"discovery-update-info",
"docs-actions",
"docs-configuration-parameters",
"docs-data-update",
"docs-examples",
"docs-high-level-description",
"docs-installation-instructions",
"docs-installation-parameters",
"docs-known-limitations",
"docs-removal-instructions",
"docs-supported-devices",
"docs-supported-functions",
"docs-troubleshooting",
"docs-use-cases",
"dynamic-devices",
"entity-category",
"entity-device-class",
"entity-disabled-by-default",
"entity-event-setup",
"entity-translations",
"entity-unavailable",
"entity-unique-id",
"exception-translations",
"has-entity-name",
"icon-translations",
"inject-websession",
"integration-owner",
"log-when-unavailable",
"parallel-updates",
"reauthentication-flow",
"reconfiguration-flow",
"repair-issues",
"runtime-data",
"stale-devices",
"strict-typing",
"test-before-configure",
"test-before-setup",
"test-coverage",
"unique-config-entry",
]
SCHEMA = vol.Schema( SCHEMA = vol.Schema(
{ {
vol.Required("rules"): vol.Schema( vol.Required("rules"): vol.Schema(
{ {
str: vol.Any( vol.Optional(rule): vol.Any(
vol.In(["todo", "done"]), vol.In(["todo", "done"]),
vol.Schema( vol.Schema(
{ {
@ -23,6 +78,7 @@ SCHEMA = vol.Schema(
} }
), ),
) )
for rule in RULES
} }
) )
} }