Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SLHDn5tsVNcA5pGcA98Cfj
|
👋 Hi! Thanks for contributing to Home Assistant. This is your PR dashboard which flags anything you need to address before your PR can be reviewed. Once everything is green, you can press the 'Ready for review' button at the bottom of the page to notify reviewers to take a look. More information about this dashboardThis dashboard automatically updates on every change to this PR and reevaluates the rules as you go. Until everything has been addressed, the bot will keep the PR in draft. Skip a check that doesn't applyIf you think a check doesn't apply to your PR (or the rule is bugged), comment Bot commandsReply with
Checks✨ Everything's in order! 5 checks passed (5 skipped)
|
|
Hey there @Quentame, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsReply with
|
There was a problem hiding this comment.
🟢 Approval recommended
The reviewed Freebox test updates consistently use direct config-entry setup, preserve retry behavior, and address the reported unused-import/pylint issue.
No open issues 🎉
What changed in this PR
Updates Freebox tests to initialize config entries directly, matching the integration's config-entry-only setup model and resolving the new pylint warning.
Changes:
- Replaces
async_setup_componentcalls withhass.config_entries.async_setup(entry.entry_id). - Updates the shared platform setup helper and removes unused imports.
- Preserves expected setup-failure behavior in the retry test.
| File | Description |
|---|---|
| tests/components/freebox/test_init.py | Uses direct config-entry setup across Freebox initialization, retry, unload, import, and migration tests. |
| tests/components/freebox/common.py | Updates the shared platform test helper to initialize the config entry directly. |
Review effort: Lite (adaptive)
Proposed change
The Freebox tests set up the integration with
async_setup_component. This integration doesn't accept YAML, so that call only sets up its config entries. The tests now set up the config entry directly withhass.config_entries.async_setup(entry.entry_id).The test where the router can't be reached doesn't assert the result, because setup is expected to fail there.
This fixes the
home-assistant-tests-setup-component-config-entrypylint warning added in the linked PR.Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests:
[prs]:
https://github.com/home-assistant/core/pulls?q=is%3Aopen+is%3Apr+-author%3A%40me+-draft%3Atrue+-label%3Awaiting-for-upstream+sort%3Acreated-desc+review%3Anone+-status%3AfailureGenerated by Claude Code