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 @tkdrob, 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 fixtures now use the integration’s config-entry setup path and remove the unused import, addressing the identified setup-model mismatch and pylint warning without any active issues noted.
No open issues 🎉
What changed in this PR
Updates NETGEAR LTE test fixtures to initialize the integration directly through its config entry, matching the integration's config-entry-only setup model and resolving the new pylint warning.
Changes:
- Replaced
async_setup_componentwithhass.config_entries.async_setup. - Applied direct config-entry setup to the expected-failure fixture without asserting its result.
- Removed the unused
async_setup_componentimport.
| File | Description |
|---|---|
| tests/components/netgear_lte/conftest.py | Updates successful and expected-failure NETGEAR LTE test fixtures to use direct config-entry setup. |
Review effort: Lite (adaptive)
Proposed change
The NETGEAR LTE 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 setup helpers now set up the config entry directly withhass.config_entries.async_setup(entry.entry_id).The
setup_cannot_connecthelper 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