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)
|
There was a problem hiding this comment.
🟢 Approval recommended
The migration tests now use direct config-entry setup, remove the unused import, and retain the existing migration and downgrade assertions without any active review issues.
No open issues 🎉
What changed in this PR
Updates the Nmap Tracker migration tests to initialize config entries directly, matching the integration's config-entry-only setup model and avoiding the new pylint warning.
Changes:
- Replaces
async_setup_componentwithhass.config_entries.async_setup. - Removes the unused
async_setup_componentimport. - Preserves the expected migration-state assertions, including the downgrade failure behavior.
| File | Description |
|---|---|
| tests/components/nmap_tracker/test_init.py | Uses direct config-entry setup for the Nmap Tracker migration and downgrade migration tests. |
Review effort: Lite (adaptive)
Proposed change
The Nmap Tracker migration 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 downgrade test doesn't assert the result, because the migration and so the 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