1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-25 05:26:47 +00:00

Add runtime_data rule to quality_scale hassfest validation (#131857)

* Add quality scale check for runtime_data

* Linter fixes

* Add developer documentation link

* Update script/hassfest/quality_scale_validation/runtime_data.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Update validation to check explicitly for ConfigEntry.runtime_data

* Update script/hassfest/quality_scale_validation/runtime_data.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>

* Refine check for setting attributes

* Patch with changes from epenet

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
Allen Porter
2024-11-29 08:56:26 -08:00
committed by GitHub
parent 0fc365a114
commit 920c958ec7
2 changed files with 55 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ from .quality_scale_validation import (
discovery,
reauthentication_flow,
reconfiguration_flow,
runtime_data,
strict_typing,
unique_config_entry,
)
@@ -52,7 +53,7 @@ ALL_RULES = [
Rule("entity-event-setup", ScaledQualityScaleTiers.BRONZE),
Rule("entity-unique-id", ScaledQualityScaleTiers.BRONZE),
Rule("has-entity-name", ScaledQualityScaleTiers.BRONZE),
Rule("runtime-data", ScaledQualityScaleTiers.BRONZE),
Rule("runtime-data", ScaledQualityScaleTiers.BRONZE, runtime_data),
Rule("test-before-configure", ScaledQualityScaleTiers.BRONZE),
Rule("test-before-setup", ScaledQualityScaleTiers.BRONZE),
Rule("unique-config-entry", ScaledQualityScaleTiers.BRONZE, unique_config_entry),