💚 Declare recorder in after_dependencies for hassfest #53
Loading…
Add table
Add a link
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: