💚 Declare recorder in after_dependencies for hassfest #53
No reviewers
Labels
No labels
v1.0 · bloquant
v1.0 · majeur
v1.0 · mineur
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mat/homeassistant-comwatt!53
Loading…
Reference in a new issue
No description provided.
Delete branch "fix-recorder-dep"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The GitHub
validate-hassfestjob fails with:Since #18,
coordinator.pyimportshomeassistant.components.recorder(async_add_external_statistics,StatisticData,StatisticMetaData,StatisticMeanType) to emit external energy statistics. hassfest requires any HA component used by the integration to be declared in the manifest, butdependencieswas empty.Fix
Declare
recorderinafter_dependencies(notdependencies): the coordinator degrades gracefully when the recorder is absent —so the recorder is optional.
after_dependenciesguarantees correct setup ordering when it is present, without forcing it to load for users who disabled it.Verification
Ran the exact CI image (
ghcr.io/home-assistant/hassfest) locally: