Rename domain variable in tests#172575
Conversation
|
Hey there @ziv1234, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @Shulyaka, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
|
Hey there @Shulyaka, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Pull request overview
This PR improves test readability by renaming local variables used as Home Assistant integration domains when calling async_setup_component.
Changes:
- Renames
component,comp, andplatformlocals/parameters todomainwhere they represent integration domains. - Updates related entity IDs and service calls to use the renamed variable.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tests/components/anthropic/test_conversation.py |
Renames Assist API setup loop variable to domain. |
tests/components/dynalite/common.py |
Renames service test helper parameter from platform to domain. |
tests/components/http/test_init.py |
Renames setup loop variable to domain. |
tests/components/logbook/test_init.py |
Renames repeated setup loop variables to domain. |
tests/components/logbook/test_websocket_api.py |
Renames repeated setup loop variables to domain. |
tests/components/openai_conversation/test_conversation.py |
Renames Assist API setup loop variable to domain. |
Proposed change
Rename
comp/component/platformtodomainin tests, when used withasync_setup_componentType 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: