Update links to the new contributors website (#186884)

This commit is contained in:
Franck Nijhof
2026-10-16 19:33:02 +02:00
committed by GitHub
parent 239f7fdfa2
commit 673ab851ba
52 changed files with 158 additions and 159 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ prek run --from-ref "$BASE_SHA" --to-ref HEAD
**Track results:**
- `PREK_PASSED`: true if `prek run` exits with code 0
**If `prek` fails or is not available, STOP and report the failure to the user. Do not proceed with PR creation. If the failure appears to be an environment setup issue (e.g., missing tools, command not found, venv not activated), also point the user to https://developers.home-assistant.io/docs/development_environment.**
**If `prek` fails or is not available, STOP and report the failure to the user. Do not proceed with PR creation. If the failure appears to be an environment setup issue (e.g., missing tools, command not found, venv not activated), also point the user to https://contributors.home-assistant.io/core/development/environment/.**
## Step 3: Stage Any Changes from Checks
@@ -121,7 +121,7 @@ Write a release-note-style PR title summarizing the change. The title becomes th
## Step 6: Verify Development Checklist
Check each item from the [development checklist](https://developers.home-assistant.io/docs/development_checklist/):
Check each item from the [development checklist](https://contributors.home-assistant.io/core/development/checklist/):
| Item | How to verify |
|------|---------------|
@@ -28,7 +28,7 @@ The following platforms have extra guidelines:
## Integration Quality Scale
- When validating the quality scale rules, check them at https://developers.home-assistant.io/docs/core/integration-quality-scale/rules
- When validating the quality scale rules, check them at https://contributors.home-assistant.io/core/quality-scale/rules/
- When implementing or reviewing an integration, always consider the quality scale rules, since they promote best practices.
Template scale file: `./script/scaffold/templates/integration/integration/quality_scale.yaml`
@@ -45,4 +45,4 @@ Template scale file: `./script/scaffold/templates/integration/integration/qualit
## Testing Requirements
- Tests should avoid interacting or mocking internal integration details. For more info, see https://developers.home-assistant.io/docs/development_testing/#writing-tests-for-integrations
- Tests should avoid interacting or mocking internal integration details. For more info, see https://contributors.home-assistant.io/core/development/tests/#test-through-home-assistant
+5 -5
View File
@@ -58,7 +58,7 @@
AI tools are welcome, but contributors are responsible for *fully*
understanding the code before submitting a PR. Please follow our AI policy:
https://developers.home-assistant.io/docs/ai_policy
https://contributors.home-assistant.io/start/ai-policy/
-->
- [ ] I understand the code I am submitting and can explain how it works.
@@ -111,8 +111,8 @@ To help with the load of incoming pull requests:
Below, some useful links you could explore:
-->
[dev-checklist]: https://developers.home-assistant.io/docs/development_checklist/
[manifest-docs]: https://developers.home-assistant.io/docs/creating_integration_manifest/
[quality-scale]: https://developers.home-assistant.io/docs/integration_quality_scale_index/
[dev-checklist]: https://contributors.home-assistant.io/core/development/checklist/
[manifest-docs]: https://contributors.home-assistant.io/core/integrations/manifest/
[quality-scale]: https://contributors.home-assistant.io/core/quality-scale/
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr
[perfect-pr]: https://contributors.home-assistant.io/start/pull-requests/#before-you-open-it
+5 -5
View File
@@ -78,7 +78,7 @@ The PR description must follow this template (from `.github/PULL_REQUEST_TEMPLAT
AI tools are welcome, but contributors are responsible for *fully*
understanding the code before submitting a PR. Please follow our AI policy:
https://developers.home-assistant.io/docs/ai_policy
https://contributors.home-assistant.io/start/ai-policy/
-->
- [ ] I understand the code I am submitting and can explain how it works.
@@ -131,11 +131,11 @@ To help with the load of incoming pull requests:
Below, some useful links you could explore:
-->
[dev-checklist]: https://developers.home-assistant.io/docs/development_checklist/
[manifest-docs]: https://developers.home-assistant.io/docs/creating_integration_manifest/
[quality-scale]: https://developers.home-assistant.io/docs/integration_quality_scale_index/
[dev-checklist]: https://contributors.home-assistant.io/core/development/checklist/
[manifest-docs]: https://contributors.home-assistant.io/core/integrations/manifest/
[quality-scale]: https://contributors.home-assistant.io/core/quality-scale/
[docs-repository]: https://github.com/home-assistant/home-assistant.io
[perfect-pr]: https://developers.home-assistant.io/docs/review-process/#creating-the-perfect-pr
[perfect-pr]: https://contributors.home-assistant.io/start/pull-requests/#before-you-open-it
```
# GitHub Copilot & Claude Code Instructions
+1 -1
View File
@@ -349,7 +349,7 @@ Use this format and keep the visible part to one or two sentences:
- Evidence: `<path>:<line>` and the relevant code.
- Recommendation: <concrete change that achieves compliance>.
- Rule: https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/<rule>
- Rule: https://contributors.home-assistant.io/core/quality-scale/rules/<rule>
</details>
```
+1 -1
View File
@@ -41,5 +41,5 @@ Contributions that do not follow this policy will be closed. Repeated violations
---
The canonical version of this policy is published at
<https://developers.home-assistant.io/docs/ai_policy>. In case of differences,
<https://contributors.home-assistant.io/start/ai-policy/>. In case of differences,
the published version applies.
+1 -1
View File
@@ -10,7 +10,7 @@ The process is straight-forward.
- Ensure tests work.
- Create a Pull Request against the [**dev**](https://github.com/home-assistant/core/tree/dev) branch of Home Assistant.
Still interested? Then you should take a peek at the [developer documentation](https://developers.home-assistant.io/) to get more details.
Still interested? Then you should take a peek at the [contributor documentation](https://contributors.home-assistant.io/) to get more details.
## Feature suggestions
+2 -2
View File
@@ -14,8 +14,8 @@ Featured integrations
|screenshot-integrations|
The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://developers.home-assistant.io/docs/architecture_index/>`__ and the `section on creating your own
components <https://developers.home-assistant.io/docs/creating_component_index/>`__.
The system is built using a modular approach so support for other devices or actions can be implemented easily. See also the `section on architecture <https://contributors.home-assistant.io/architecture/big-picture/>`__ and the `section on creating your own
components <https://contributors.home-assistant.io/core/integrations/create/>`__.
If you run into issues while using Home Assistant or during development
of a component, check the `Home Assistant help section <https://home-assistant.io/help/>`__ of our website for further help and information.
+2 -2
View File
@@ -153,7 +153,7 @@ class WellKnownOAuthInfoView(HomeAssistantView):
"code_challenge_methods_supported": ["S256"],
"response_types_supported": ["code"],
"service_documentation": (
"https://developers.home-assistant.io/docs/auth_api"
"https://contributors.home-assistant.io/core/internals/auth-api/"
),
}
@@ -185,7 +185,7 @@ class WellKnownProtectedResourceView(HomeAssistantView):
"resource": url_prefix,
"authorization_servers": [url_prefix],
"resource_documentation": (
"https://developers.home-assistant.io/docs/auth_api"
"https://contributors.home-assistant.io/core/internals/auth-api/"
),
}
)
@@ -62,7 +62,7 @@ from .entity import GoogleWeatherBaseEntity
PARALLEL_UPDATES = 0
# Maps https://developers.google.com/maps/documentation/weather/weather-condition-icons
# to https://developers.home-assistant.io/docs/core/entity/weather/#recommended-values-for-state-and-condition
# to https://contributors.home-assistant.io/core/entities/weather/#conditions
_CONDITION_MAP: dict[WeatherCondition.Type, str | None] = {
WeatherCondition.Type.TYPE_UNSPECIFIED: None,
WeatherCondition.Type.CLEAR: ATTR_CONDITION_SUNNY,
+3 -3
View File
@@ -479,7 +479,7 @@ _CODE_VALIDATION_MODE = {
EXCLUDE_FROM_CONFIG_IF_NONE = {CONF_ENTITY_CATEGORY, CONF_UNIT_OF_MEASUREMENT}
PWD_NOT_CHANGED = "__**password_not_changed**__"
DEVELOPER_DOCUMENTATION_URL = "https://developers.home-assistant.io/"
DEVELOPER_DOCUMENTATION_URL = "https://contributors.home-assistant.io/"
USER_DOCUMENTATION_URL = "https://www.home-assistant.io/"
TZ_ZONE_ABBR_URL = (
"https://en.wikipedia.org/wiki/List_of_tz_database_time_zones"
@@ -491,11 +491,11 @@ TEMPLATING_URL = f"{USER_DOCUMENTATION_URL}docs/configuration/templating/"
COMMAND_TEMPLATING_URL = f"{TEMPLATING_URL}#using-command-templates-with-mqtt"
VALUE_TEMPLATING_URL = f"{TEMPLATING_URL}#using-value-templates-with-mqtt"
AVAILABLE_STATE_CLASSES_URL = (
f"{DEVELOPER_DOCUMENTATION_URL}docs/core/entity/sensor/#available-state-classes"
f"{DEVELOPER_DOCUMENTATION_URL}core/entities/sensor/#state-classes"
)
NAMING_ENTITIES_URL = f"{INTEGRATION_URL}#naming-of-mqtt-entities"
REGISTRY_PROPERTIES_URL = (
f"{DEVELOPER_DOCUMENTATION_URL}docs/core/entity/#registry-properties"
f"{DEVELOPER_DOCUMENTATION_URL}core/entities/registry/#entity-categories"
)
TRANSLATION_DESCRIPTION_PLACEHOLDERS = {
@@ -128,7 +128,7 @@ class AtlanticDomesticHotWaterProductionMBLComponent(OverkizEntity, WaterHeaterE
):
# STATE_ELECTRIC is a substitution for OverkizCommandParam.MANUAL
# to keep up with the conventional state usage only
# https://developers.home-assistant.io/docs/core/entity/water-heater/#states
# https://contributors.home-assistant.io/core/entities/water-heater/#states
return STATE_ELECTRIC
return STATE_OFF
+1 -1
View File
@@ -1929,7 +1929,7 @@ class ConfigEntriesFlowManager(
# reconfigure to allow the user to change settings.
# In case of non user visible flows, the integration should optionally
# update the existing entry before aborting.
# see https://developers.home-assistant.io/blog/2025/03/01/config-flow-unique-id/
# see https://contributors.home-assistant.io/blog/2025/03/01/config-flow-unique-id/
report_usage(
"creates a config entry when another entry with the same unique ID "
"exists",
+3 -3
View File
@@ -652,7 +652,7 @@ class HomeAssistant:
frame.report_usage(
"calls `async_add_job`, which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
"https://contributors.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/"
" for replacement options",
core_behavior=frame.ReportBehavior.LOG,
breaks_in_ha_version="2025.4",
@@ -708,7 +708,7 @@ class HomeAssistant:
frame.report_usage(
"calls `async_add_hass_job`, which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/04/07/deprecate_add_hass_job"
"https://contributors.home-assistant.io/blog/2024/04/07/deprecate_add_hass_job/"
" for replacement options",
core_behavior=frame.ReportBehavior.LOG,
breaks_in_ha_version="2025.5",
@@ -982,7 +982,7 @@ class HomeAssistant:
frame.report_usage(
"calls `async_run_job`, which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
"https://contributors.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/"
" for replacement options",
core_behavior=frame.ReportBehavior.LOG,
breaks_in_ha_version="2025.4",
+1 -1
View File
@@ -416,7 +416,7 @@ def report_non_thread_safe_operation(what: str) -> None:
f"calls {what} from a thread other than the event loop, "
"which may cause Home Assistant to crash or data to corrupt. "
"For more information, see "
"https://developers.home-assistant.io/docs/asyncio_thread_safety/"
"https://contributors.home-assistant.io/core/internals/thread-safety/"
f"#{what.replace('.', '')}",
core_behavior=ReportBehavior.ERROR,
core_integration_behavior=ReportBehavior.ERROR,
+4 -4
View File
@@ -833,8 +833,8 @@ class Integration:
(
"The custom integration '%s' does not have a version key in the"
" manifest file and was blocked from loading. See"
" https://developers.home-assistant.io"
"/blog/2021/01/29/custom-integration-changes#versions"
" https://contributors.home-assistant.io"
"/blog/2021/01/29/custom-integration-changes/#versions"
" for more details"
),
integration.domain,
@@ -856,8 +856,8 @@ class Integration:
(
"The custom integration '%s' does not have a valid version key"
" (%s) in the manifest file and was blocked from loading. See"
" https://developers.home-assistant.io"
"/blog/2021/01/29/custom-integration-changes#versions"
" https://contributors.home-assistant.io"
"/blog/2021/01/29/custom-integration-changes/#versions"
" for more details"
),
integration.domain,
+1 -1
View File
@@ -173,7 +173,7 @@ def _dev_help_message(what: str) -> str:
"""Generate help message to guide developers."""
return (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/"
"https://contributors.home-assistant.io/core/internals/blocking-operations/"
f"#{what.replace('.', '')}"
)
+12 -12
View File
@@ -328,7 +328,7 @@ Use `entry.runtime_data` instead of `hass.data[DOMAIN]`. The `runtime_data`
approach is type-safe (via `ConfigEntry[T]`), automatically cleaned up on
entry unload, and avoids key collisions in the shared `hass.data` dictionary.
See the [runtime-data quality scale rule](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/runtime-data)
See the [runtime-data quality scale rule](https://contributors.home-assistant.io/core/quality-scale/runtime-data/)
for migration guidance.
@@ -441,7 +441,7 @@ the config entry. Uses variable tracking to catch indirect usage (e.g.,
stable hardware identifier instead: a MAC address (via `format_mac`),
serial number, or device-provided unique ID.
See the [unique-config-entry quality scale rule](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/unique-config-entry).
See the [unique-config-entry quality scale rule](https://contributors.home-assistant.io/core/quality-scale/unique-config-entry/).
## `home_assistant_enforce_config_flow_no_polling` checker
@@ -457,7 +457,7 @@ Config flow should not include polling interval fields like
integration author determines the appropriate polling frequency based on
API rate limits, device capabilities, and data freshness needs.
See the [appropriate-polling quality scale rule](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/appropriate-polling).
See the [appropriate-polling quality scale rule](https://contributors.home-assistant.io/core/quality-scale/appropriate-polling/).
## `home_assistant_enforce_config_flow_no_name` checker
@@ -687,7 +687,7 @@ for finishing the flow, with the arguments they are called with. A reason
taken from a test argument counts when all its `pytest.mark.parametrize`
values end with `_successful`.
See the [config-flow-test-coverage quality scale rule](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/config-flow-test-coverage).
See the [config-flow-test-coverage quality scale rule](https://contributors.home-assistant.io/core/quality-scale/config-flow-test-coverage/).
## `home_assistant_enforce_utcnow` checker
@@ -740,7 +740,7 @@ checkers.
## `home_assistant_entity_unique_id` checker
Quality-scale-gated checker for the [`entity-unique-id`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/entity-unique-id)
Quality-scale-gated checker for the [`entity-unique-id`](https://contributors.home-assistant.io/core/quality-scale/entity-unique-id/)
Bronze rule. Only fires for entity-platform modules whose
`quality_scale.yaml` marks `entity-unique-id` as `done`.
@@ -954,7 +954,7 @@ inside helper functions that are called from `async_setup_entry` are
caught too, as are calls to the conventional `async_setup_services` helper
from `services.py`.
See the [action-setup quality scale rule](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/action-setup).
See the [action-setup quality scale rule](https://contributors.home-assistant.io/core/quality-scale/action-setup/).
## `home_assistant_actions_services_module` checker
@@ -1122,7 +1122,7 @@ no `assert`. `match` statements have no exemptions.
## `home_assistant_reauthentication_flow` checker
Quality-scale-gated checker for the
[`reauthentication-flow`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reauthentication-flow)
[`reauthentication-flow`](https://contributors.home-assistant.io/core/quality-scale/reauthentication-flow/)
Silver rule. Fires only when the integration claims the rule as `done`.
### `W7410`: `home-assistant-missing-reauthentication-flow`
@@ -1133,7 +1133,7 @@ Integration's `config_flow.py` should implement `async_step_reauth`.
## `home_assistant_parallel_updates` checker
Quality-scale-gated checker for the
[`parallel-updates`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/parallel-updates)
[`parallel-updates`](https://contributors.home-assistant.io/core/quality-scale/parallel-updates/)
Silver rule. Fires only when the integration claims the rule as `done`.
### `W7411`: `home-assistant-missing-parallel-updates`
@@ -1144,7 +1144,7 @@ Platform module should define a module-level `PARALLEL_UPDATES` constant.
## `home_assistant_diagnostics` checker
Quality-scale-gated checker for the
[`diagnostics`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/diagnostics)
[`diagnostics`](https://contributors.home-assistant.io/core/quality-scale/diagnostics/)
Gold rule. Fires only when the integration claims the rule as `done`.
### `W7412`: `home-assistant-missing-diagnostics`
@@ -1156,7 +1156,7 @@ Integration's `diagnostics.py` should implement
## `home_assistant_config_entry_unloading` checker
Quality-scale-gated checker for the
[`config-entry-unloading`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/config-entry-unloading)
[`config-entry-unloading`](https://contributors.home-assistant.io/core/quality-scale/config-entry-unloading/)
Silver rule. Fires only when the integration claims the rule as `done`.
### `W7413`: `home-assistant-missing-config-entry-unloading`
@@ -1181,7 +1181,7 @@ blocking calls. The rule applies to integration modules only.
## `home_assistant_has_entity_name` checker
Quality-scale-gated checker for the
[`has-entity-name`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/has-entity-name)
[`has-entity-name`](https://contributors.home-assistant.io/core/quality-scale/has-entity-name/)
Bronze rule. Fires only when the integration claims the rule as `done`.
### `W7416`: `home-assistant-missing-has-entity-name`
@@ -1226,7 +1226,7 @@ subentry handler class names to their type keys.
## `home_assistant_test_before_configure` checker
Quality-scale-gated checker for the
[`test-before-configure`](https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/test-before-configure)
[`test-before-configure`](https://contributors.home-assistant.io/core/quality-scale/test-before-configure/)
Bronze rule. Fires only when the integration claims the rule as `done`.
### `W7433`: `home-assistant-missing-test-before-configure`
@@ -18,7 +18,7 @@ The checker also follows calls to functions defined in the same module,
so service registrations inside helper functions called from
``async_setup_entry`` are caught too.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/action-setup/
https://contributors.home-assistant.io/core/quality-scale/action-setup/
"""
from astroid import nodes
@@ -100,8 +100,8 @@ class ServiceRegistrationChecker(BaseChecker):
msgs = {
"W7414": (
"Service registered in `async_setup_entry` instead of `async_setup` "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/action-setup)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/action-setup/)",
"home-assistant-service-registered-in-setup-entry",
"Used when a service is registered inside async_setup_entry "
"or a function called from it. Services should be registered "
@@ -11,7 +11,7 @@ This checker flags:
- action registrations anywhere else in an integration
- an ``async_setup_services`` or ``setup_services`` with a different signature
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/action-setup/
https://contributors.home-assistant.io/core/quality-scale/action-setup/
"""
from astroid import nodes
@@ -38,15 +38,15 @@ class HassEnforceConfigFlowNoPollingChecker(BaseChecker):
"W7407": (
"Config flow should not include a '%s' field -- polling intervals "
"should be fixed by the integration, not user-configurable "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/appropriate-polling)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/appropriate-polling/)",
"home-assistant-config-flow-polling-field",
"Used when a config flow schema includes a polling/scan interval "
"field. The integration author should determine the appropriate "
"polling frequency based on API rate limits and data freshness "
"needs. Polling intervals should not be user-configurable. "
"See https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/appropriate-polling",
"See https://contributors.home-assistant.io/core/"
"quality-scale/appropriate-polling/",
),
}
options = ()
@@ -36,14 +36,14 @@ class HassEnforceConfigEntryUniqueIdNoIpChecker(BaseChecker):
"W7406": (
"unique_id should not be based on '%s' -- IP addresses change; "
"use a MAC address (format_mac), serial number, or hardware ID "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/unique-config-entry)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/unique-config-entry/)",
"home-assistant-unique-id-ip-based",
"Used when a unique_id is set from a host/IP config key. IP "
"addresses change when devices get new DHCP leases. Use a "
"stable hardware identifier instead. "
"See https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/unique-config-entry",
"See https://contributors.home-assistant.io/core/"
"quality-scale/unique-config-entry/",
),
}
options = ()
@@ -6,7 +6,7 @@
The integration's ``__init__.py`` must implement ``async_unload_entry``
so that config entries can be properly unloaded and resources cleaned up.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/config-entry-unloading/
https://contributors.home-assistant.io/core/quality-scale/config-entry-unloading/
"""
from astroid import nodes
@@ -26,8 +26,8 @@ class ConfigEntryUnloadingChecker(BaseChecker):
msgs = {
"W7413": (
"Integration should implement `async_unload_entry` "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/config-entry-unloading)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/config-entry-unloading/)",
"home-assistant-missing-config-entry-unloading",
"Used when an integration's __init__.py does not implement "
"async_unload_entry. This function is needed so config entries "
@@ -7,7 +7,7 @@ The integration must have a ``diagnostics.py`` module that implements at
least one of ``async_get_config_entry_diagnostics`` or
``async_get_device_diagnostics``.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/diagnostics/
https://contributors.home-assistant.io/core/quality-scale/diagnostics/
"""
from astroid import nodes
@@ -36,8 +36,8 @@ class DiagnosticsChecker(BaseChecker):
"Integration diagnostics module should implement "
"`async_get_config_entry_diagnostics` or "
"`async_get_device_diagnostics` "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/diagnostics)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/diagnostics/)",
"home-assistant-missing-diagnostics",
"Used when an integration's diagnostics.py does not implement "
"at least one of async_get_config_entry_diagnostics or "
@@ -56,7 +56,7 @@ To resolve: either compute the id per instance (using config-entry id,
serial, MAC, etc.), or declare the integration as
``single_config_entry`` if there is genuinely only ever one instance.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/entity-unique-id
https://contributors.home-assistant.io/core/quality-scale/entity-unique-id/
"""
from astroid import nodes
@@ -300,8 +300,8 @@ class EntityUniqueIdChecker(BaseChecker):
(
"Entity class `%s` should set `_attr_unique_id` or define a "
"`unique_id` property "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/entity-unique-id)"
"(https://contributors.home-assistant.io/core/"
"quality-scale/entity-unique-id/)"
),
"home-assistant-missing-entity-unique-id",
(
@@ -321,8 +321,8 @@ class EntityUniqueIdChecker(BaseChecker):
"config entry. Use a per-instance value, or declare "
"`single_config_entry: true` in manifest.json if there is "
"genuinely only one instance "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/entity-unique-id)"
"(https://contributors.home-assistant.io/core/"
"quality-scale/entity-unique-id/)"
),
"home-assistant-entity-unique-id-static",
(
@@ -41,7 +41,7 @@ intentional scope choices to be aware of:
``# pylint: disable=home-assistant-missing-has-entity-name`` on the
offending class declaration is the recommended escape hatch.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/has-entity-name
https://contributors.home-assistant.io/core/quality-scale/has-entity-name/
"""
import astroid
@@ -227,8 +227,8 @@ class HasEntityNameChecker(BaseChecker):
"W7416": (
(
"Entity class `%s` should set `_attr_has_entity_name = True` "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/has-entity-name)"
"(https://contributors.home-assistant.io/core/"
"quality-scale/has-entity-name/)"
),
"home-assistant-missing-has-entity-name",
(
@@ -7,7 +7,7 @@ Every entity platform module must define a ``PARALLEL_UPDATES`` constant that
controls how many entity updates and actions can run concurrently. The
integration author should set this based on the device/API capabilities.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/parallel-updates
https://contributors.home-assistant.io/core/quality-scale/parallel-updates/
"""
from astroid import nodes
@@ -27,8 +27,8 @@ class ParallelUpdatesChecker(BaseChecker):
msgs = {
"W7411": (
"Platform module should define `PARALLEL_UPDATES` constant "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/parallel-updates)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/parallel-updates/)",
"home-assistant-missing-parallel-updates",
"Used when an entity platform module does not define the "
"PARALLEL_UPDATES constant. This constant controls how many "
@@ -6,7 +6,7 @@
The config flow must implement ``async_step_reauth`` so that users can
re-authenticate when credentials expire or become invalid.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reauthentication-flow/
https://contributors.home-assistant.io/core/quality-scale/reauthentication-flow/
"""
from astroid import nodes
@@ -26,8 +26,8 @@ class ReauthenticationFlowChecker(BaseChecker):
msgs = {
"W7410": (
"Integration config flow should implement `async_step_reauth` "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/reauthentication-flow)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/reauthentication-flow/)",
"home-assistant-missing-reauthentication-flow",
"Used when an integration's config_flow.py does not implement "
"async_step_reauth. This method is needed so users can "
@@ -28,7 +28,7 @@ skipped: the OAuth token exchange is the connection test. Integrations
that rely on auto-discovery without user-provided connection data should
mark the rule ``exempt`` instead, per the rule's exceptions.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/test-before-configure/
https://contributors.home-assistant.io/core/quality-scale/test-before-configure/
"""
from astroid import nodes
@@ -116,8 +116,8 @@ class TestBeforeConfigureChecker(BaseChecker):
(
"Config flow should test the connection with the user-provided "
"data and show failures to the user before creating an entry "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/test-before-configure)"
"(https://contributors.home-assistant.io/core/"
"quality-scale/test-before-configure/)"
),
"home-assistant-missing-test-before-configure",
(
@@ -41,14 +41,14 @@ class HassEnforceRuntimeDataChecker(BaseChecker):
msgs = {
"W7405": (
"Use entry.runtime_data instead of hass.data[DOMAIN] "
"(https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/runtime-data)",
"(https://contributors.home-assistant.io/core/"
"quality-scale/runtime-data/)",
"home-assistant-use-runtime-data",
"Used when integration code accesses hass.data[DOMAIN]. "
"New integrations should use entry.runtime_data for type-safe, "
"automatically-cleaned-up per-entry data storage. "
"See https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/runtime-data",
"See https://contributors.home-assistant.io/core/"
"quality-scale/runtime-data/",
),
}
options = ()
@@ -4,7 +4,7 @@ Multiple sequential ``await hass.async_add_executor_job()`` calls should
be grouped into a single executor job to avoid unnecessary context switches
back to the event loop between blocking calls.
https://developers.home-assistant.io/docs/asyncio_working_with_async/#calling-sync-functions-from-async
https://contributors.home-assistant.io/core/internals/asyncio/#move-blocking-work-to-the-executor
"""
from astroid import nodes
+1 -1
View File
@@ -28,7 +28,7 @@ dependencies = [
[project.urls]
Homepage = "https://github.com/home-assistant/core"
Documentation = "https://developers.home-assistant.io"
Documentation = "https://contributors.home-assistant.io"
Repository = "https://github.com/home-assistant/core"
"Bug Tracker" = "https://github.com/home-assistant/core/issues"
+1 -1
View File
@@ -92,7 +92,7 @@ dependencies = [
"Homepage" = "https://www.home-assistant.io/"
"Source Code" = "https://github.com/home-assistant/core"
"Bug Reports" = "https://github.com/home-assistant/core/issues"
"Docs: Dev" = "https://developers.home-assistant.io/"
"Docs: Dev" = "https://contributors.home-assistant.io/"
"Discord" = "https://www.home-assistant.io/join-chat/"
"Forum" = "https://community.home-assistant.io/"
+1 -2
View File
@@ -55,8 +55,7 @@ OVERRIDDEN_REQUIREMENTS_ACTIONS = {
}
URL_PIN = (
"https://developers.home-assistant.io/docs/"
"creating_platform_code_review.html#1-requirements"
"https://contributors.home-assistant.io/core/integrations/manifest/#requirements"
)
+2 -2
View File
@@ -103,8 +103,8 @@ VALIDATORS = {rule.name: rule.validator for rule in ALL_RULES if rule.validator}
RULE_URL = (
"Please check the documentation at "
"https://developers.home-assistant.io/docs/core/"
"integration-quality-scale/rules/{rule_name}/"
"https://contributors.home-assistant.io/core/"
"quality-scale/{rule_name}/"
)
INTEGRATIONS_WITHOUT_QUALITY_SCALE_FILE = [
@@ -1,6 +1,6 @@
"""Enforce that the integration implements config flow.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/config-flow/
https://contributors.home-assistant.io/core/quality-scale/config-flow/
"""
from script.hassfest.model import Config, Integration
@@ -1,6 +1,6 @@
"""Enforce that the integration supports discovery.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/discovery/
https://contributors.home-assistant.io/core/quality-scale/discovery/
"""
import ast
@@ -1,6 +1,6 @@
"""Enforce that the integration implements reconfiguration flow.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/reconfiguration-flow/
https://contributors.home-assistant.io/core/quality-scale/reconfiguration-flow/
"""
import ast
@@ -1,6 +1,6 @@
"""Enforce that the integration uses ConfigEntry.runtime_data to store runtime data.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/runtime-data
https://contributors.home-assistant.io/core/quality-scale/runtime-data/
"""
import ast
@@ -1,6 +1,6 @@
"""Enforce that the integration has strict typing enabled.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/strict-typing/
https://contributors.home-assistant.io/core/quality-scale/strict-typing/
"""
from functools import lru_cache
@@ -1,6 +1,6 @@
"""Enforce that the integration raises correctly during initialisation.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/test-before-setup/
https://contributors.home-assistant.io/core/quality-scale/test-before-setup/
"""
import ast
@@ -1,6 +1,6 @@
"""Enforce that the integration prevents duplicates from being configured.
https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/unique-config-entry/
https://contributors.home-assistant.io/core/quality-scale/unique-config-entry/
"""
import ast
+1 -1
View File
@@ -128,7 +128,7 @@ FORBIDDEN_PACKAGES = {
"dataclasses-json": "be removed (it can break in Python 3.15)",
# Only needed for docs
"mkdocs": "not be a runtime dependency",
# See https://developers.home-assistant.io/blog/2026/04/27/pyserial-to-serialx/
# See https://contributors.home-assistant.io/blog/2026/04/27/pyserial-to-serialx/
"pyserial-asyncio": "be replaced by serialx",
# Only needed for tests
"pytest": "not be a runtime dependency",
+26 -26
View File
@@ -12,7 +12,7 @@
{
"properties": {
"domain": {
"description": "The domain identifier of the integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#domain",
"description": "The domain identifier of the integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#domain",
"examples": ["mobile_app"],
"type": "string",
"pattern": "[0-9a-z_]+"
@@ -22,11 +22,11 @@
"type": "string"
},
"integration_type": {
"description": "The integration type.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#integration-type",
"description": "The integration type.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#integration_type",
"const": "virtual"
},
"iot_standards": {
"description": "The IoT standards which supports devices or services of this virtual integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#iot-standards",
"description": "The IoT standards which supports devices or services of this virtual integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#virtual-integrations",
"type": "array",
"minItems": 1,
"items": {
@@ -41,7 +41,7 @@
{
"properties": {
"domain": {
"description": "The domain identifier of the integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#domain",
"description": "The domain identifier of the integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#domain",
"examples": ["mobile_app"],
"type": "string",
"pattern": "[0-9a-z_]+"
@@ -51,11 +51,11 @@
"type": "string"
},
"integration_type": {
"description": "The integration type.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#integration-type",
"description": "The integration type.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#integration_type",
"const": "virtual"
},
"supported_by": {
"description": "The integration which supports devices or services of this virtual integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#supported-by",
"description": "The integration which supports devices or services of this virtual integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#virtual-integrations",
"type": "string"
}
},
@@ -67,7 +67,7 @@
"else": {
"properties": {
"domain": {
"description": "The domain identifier of the integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#domain",
"description": "The domain identifier of the integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#domain",
"examples": ["mobile_app"],
"type": "string",
"pattern": "[0-9a-z_]+"
@@ -77,7 +77,7 @@
"type": "string"
},
"integration_type": {
"description": "The integration type.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#integration-type",
"description": "The integration type.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#integration_type",
"type": "string",
"default": "hub",
"enum": [
@@ -91,11 +91,11 @@
]
},
"config_flow": {
"description": "Whether the integration is configurable from the UI.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#config-flow",
"description": "Whether the integration is configurable from the UI.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#config_flow",
"type": "boolean"
},
"mqtt": {
"description": "A list of topics to subscribe for the discovery of devices via MQTT.\nThis requires to specify \"mqtt\" in either the \"dependencies\" or \"after_dependencies\".\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#mqtt",
"description": "A list of topics to subscribe for the discovery of devices via MQTT.\nThis requires to specify \"mqtt\" in either the \"dependencies\" or \"after_dependencies\".\nhttps://contributors.home-assistant.io/core/integrations/manifest/#mqtt",
"type": "array",
"items": {
"type": "string"
@@ -103,7 +103,7 @@
"uniqueItems": true
},
"zeroconf": {
"description": "A list containing service domains to search for devices to discover via Zeroconf. Items can either be strings, which discovers all devices in the specific service domain, and/or objects which include filters. (useful for generic service domains like _http._tcp.local.)\nA device is discovered if it matches one of the items, but inside the individual item all properties have to be matched.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#zeroconf",
"description": "A list containing service domains to search for devices to discover via Zeroconf. Items can either be strings, which discovers all devices in the specific service domain, and/or objects which include filters. (useful for generic service domains like _http._tcp.local.)\nA device is discovered if it matches one of the items, but inside the individual item all properties have to be matched.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#zeroconf",
"type": "array",
"minItems": 1,
"items": {
@@ -140,7 +140,7 @@
"uniqueItems": true
},
"ssdp": {
"description": "A list of matchers to find devices discoverable via SSDP/UPnP. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#ssdp",
"description": "A list of matchers to find devices discoverable via SSDP/UPnP. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#ssdp",
"type": "array",
"minItems": 1,
"items": {
@@ -164,7 +164,7 @@
}
},
"bluetooth": {
"description": "A list of matchers to find devices discoverable via Bluetooth. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#bluetooth",
"description": "A list of matchers to find devices discoverable via Bluetooth. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#bluetooth",
"type": "array",
"minItems": 1,
"items": {
@@ -211,7 +211,7 @@
"uniqueItems": true
},
"homekit": {
"description": "A list of model names to find devices which are discoverable via HomeKit. A device is discovered if the model name of the device starts with any of the specified model names.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#homekit",
"description": "A list of model names to find devices which are discoverable via HomeKit. A device is discovered if the model name of the device starts with any of the specified model names.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#homekit",
"type": "object",
"properties": {
"models": {
@@ -227,7 +227,7 @@
"additionalProperties": false
},
"dhcp": {
"description": "A list of matchers to find devices discoverable via DHCP. In order to be discovered, the device has to match all properties of any of the matchers.\nYou can specify an item with \"registered_devices\" set to true to check for devices with MAC addresses specified in the device registry.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#dhcp",
"description": "A list of matchers to find devices discoverable via DHCP. In order to be discovered, the device has to match all properties of any of the matchers.\nYou can specify an item with \"registered_devices\" set to true to check for devices with MAC addresses specified in the device registry.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#dhcp",
"type": "array",
"items": {
"anyOf": [
@@ -261,7 +261,7 @@
"uniqueItems": true
},
"usb": {
"description": "A list of matchers to find devices discoverable via USB. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#usb",
"description": "A list of matchers to find devices discoverable via USB. In order to be discovered, the device has to match all properties of any of the matchers.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#usb",
"type": "array",
"uniqueItems": true,
"items": {
@@ -300,18 +300,18 @@
}
},
"documentation": {
"description": "The website containing the documentation for the integration. It has to be in the format \"https://www.home-assistant.io/integrations/[domain]\"\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#documentation",
"description": "The website containing the documentation for the integration. It has to be in the format \"https://www.home-assistant.io/integrations/[domain]\"\nhttps://contributors.home-assistant.io/core/integrations/manifest/#documentation",
"type": "string",
"pattern": "^https://www.home-assistant.io/integrations/[0-9a-z_]+$",
"format": "uri"
},
"quality_scale": {
"description": "The quality scale of the integration.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#integration-quality-scale",
"description": "The quality scale of the integration.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#quality_scale",
"type": "string",
"enum": ["bronze", "silver", "gold", "platinum", "internal", "legacy"]
},
"requirements": {
"description": "The PyPI package requirements for the integration. The package has to be pinned to a specific version.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#requirements",
"description": "The PyPI package requirements for the integration. The package has to be pinned to a specific version.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#requirements",
"type": "array",
"items": {
"type": "string",
@@ -320,7 +320,7 @@
"uniqueItems": true
},
"dependencies": {
"description": "A list of integrations which need to be loaded before this integration can be set up.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#dependencies",
"description": "A list of integrations which need to be loaded before this integration can be set up.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#dependencies",
"type": "array",
"items": {
"type": "string"
@@ -329,7 +329,7 @@
"uniqueItems": true
},
"after_dependencies": {
"description": "A list of integrations which need to be loaded before this integration is set up when it is configured. The integration will still be set up when the \"after_dependencies\" are not configured.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#after-dependencies",
"description": "A list of integrations which need to be loaded before this integration is set up when it is configured. The integration will still be set up when the \"after_dependencies\" are not configured.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#after_dependencies",
"type": "array",
"items": {
"type": "string"
@@ -338,7 +338,7 @@
"uniqueItems": true
},
"codeowners": {
"description": "A list of GitHub usernames or GitHub team names of the integration owners.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#code-owners",
"description": "A list of GitHub usernames or GitHub team names of the integration owners.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#codeowners",
"type": "array",
"minItems": 0,
"items": {
@@ -348,7 +348,7 @@
"uniqueItems": true
},
"loggers": {
"description": "A list of logger names used by the requirements.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#loggers",
"description": "A list of logger names used by the requirements.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#loggers",
"type": "array",
"minItems": 1,
"items": {
@@ -357,7 +357,7 @@
"uniqueItems": true
},
"preview_features": {
"description": "Preview features that can be enabled/disabled by users via the Labs UI.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#preview-features",
"description": "Preview features that can be enabled/disabled by users via the Labs UI.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#preview_features",
"type": "object",
"minProperties": 1,
"additionalProperties": {
@@ -387,7 +387,7 @@
"type": "string"
},
"iot_class": {
"description": "The IoT class of the integration, describing how the integration connects to the device or service.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#iot-class",
"description": "The IoT class of the integration, describing how the integration connects to the device or service.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#iot_class",
"type": "string",
"enum": [
"assumed_state",
@@ -399,7 +399,7 @@
]
},
"single_config_entry": {
"description": "Whether the integration only supports a single config entry.\nhttps://developers.home-assistant.io/docs/creating_integration_manifest/#single-config-entry-only",
"description": "Whether the integration only supports a single config entry.\nhttps://contributors.home-assistant.io/core/integrations/manifest/#single_config_entry",
"const": true
}
},
+11 -11
View File
@@ -5,43 +5,43 @@ from .model import Info
DATA = {
"backup": {
"title": "Backup",
"docs": "https://developers.home-assistant.io/docs/core/platform/backup",
"docs": "https://contributors.home-assistant.io/core/integrations/backup/",
},
"config_flow": {
"title": "Config Flow",
"docs": "https://developers.home-assistant.io/docs/en/config_entries_config_flow_handler.html",
"docs": "https://contributors.home-assistant.io/core/integrations/config-flow/",
},
"config_flow_helper": {
"title": "Helper Config Flow",
"docs": "https://developers.home-assistant.io/docs/en/config_entries_config_flow_handler.html#helper",
"docs": "https://contributors.home-assistant.io/core/integrations/config-flow/#simple-flows-with-schemaconfigflowhandler",
},
"config_flow_discovery": {
"title": "Discoverable Config Flow",
"docs": "https://developers.home-assistant.io/docs/en/config_entries_config_flow_handler.html#discoverable-integrations-that-require-no-authentication",
"docs": "https://contributors.home-assistant.io/core/integrations/config-flow/#discoverable-integrations-without-authentication",
},
"config_flow_oauth2": {
"title": "OAuth2 Config Flow",
"docs": "https://developers.home-assistant.io/docs/en/next/config_entries_config_flow_handler.html#configuration-via-oauth2",
"docs": "https://contributors.home-assistant.io/core/integrations/oauth2/",
},
"device_action": {
"title": "Device Action",
"docs": "https://developers.home-assistant.io/docs/en/device_automation_action.html",
"docs": "https://contributors.home-assistant.io/core/integrations/device-automations/",
},
"device_condition": {
"title": "Device Condition",
"docs": "https://developers.home-assistant.io/docs/en/device_automation_condition.html",
"docs": "https://contributors.home-assistant.io/core/integrations/device-automations/",
},
"device_trigger": {
"title": "Device Trigger",
"docs": "https://developers.home-assistant.io/docs/en/device_automation_trigger.html",
"docs": "https://contributors.home-assistant.io/core/integrations/device-automations/",
},
"integration": {
"title": "Integration",
"docs": "https://developers.home-assistant.io/docs/en/creating_integration_file_structure.html",
"docs": "https://contributors.home-assistant.io/core/integrations/file-structure/",
},
"reproduce_state": {
"title": "Reproduce State",
"docs": "https://developers.home-assistant.io/docs/core/platform/reproduce_state",
"docs": "https://contributors.home-assistant.io/core/integrations/reproduce-state/",
"extra": (
"You will now need to update the code to"
" make sure that every attribute that can"
@@ -51,7 +51,7 @@ DATA = {
},
"significant_change": {
"title": "Significant Change",
"docs": "https://developers.home-assistant.io/docs/core/platform/significant_change",
"docs": "https://contributors.home-assistant.io/core/integrations/significant-change/",
"extra": (
"You will now need to update the code to"
" make sure that entities with different"
+4 -4
View File
@@ -101,7 +101,7 @@ def gather_new_integration(determine_auth: bool) -> Info:
Valid values are {", ".join(SUPPORTED_IOT_CLASSES)}
More info @ https://developers.home-assistant.io/docs/creating_integration_manifest#iot-class
More info @ https://contributors.home-assistant.io/core/integrations/manifest/#iot_class
"""
),
"validators": [
@@ -143,9 +143,9 @@ More info @ https://developers.home-assistant.io/docs/creating_integration_manif
" To intentionally leave it"
" unset, type 'omit'."
"\n\nMore info @ "
"https://developers.home-assistant.io"
"/docs/creating_integration_manifest"
"/#integration-type\n"
"https://contributors.home-assistant.io"
"/core/integrations/manifest"
"/#integration_type\n"
),
"validators": [
[
@@ -10,7 +10,7 @@ from homeassistant.helpers import config_entry_oauth2_flow
# TODO the following two API examples are based on our suggested best practices
# for libraries using OAuth2 with requests or aiohttp. Delete the one you won't use.
# For more info see the docs at https://developers.home-assistant.io/docs/api_lib_auth/#oauth2.
# For more info see the docs at https://contributors.home-assistant.io/core/integrations/api-library/#oauth-2.
class ConfigEntryAuth(my_pypi_package.AbstractAuth):
@@ -115,7 +115,7 @@ async def test_reconnect(
"Handles device/service unavailable. Log a warning once when
unavailable, log once when reconnected."
https://developers.home-assistant.io/docs/en/integration_quality_scale_index.html
https://contributors.home-assistant.io/core/quality-scale/
"""
patch_key, entity_id, config_entry = _setup(config)
config_entry.add_to_hass(hass)
+3 -3
View File
@@ -438,7 +438,7 @@ async def test_well_known_auth_info(
"client_id_metadata_document_supported": True,
"code_challenge_methods_supported": ["S256"],
"response_types_supported": ["code"],
"service_documentation": "https://developers.home-assistant.io/docs/auth_api",
"service_documentation": "https://contributors.home-assistant.io/core/internals/auth-api/",
}
@@ -455,7 +455,7 @@ async def test_well_known_auth_info(
{
"resource": "https://example.com",
"authorization_servers": ["https://example.com"],
"resource_documentation": "https://developers.home-assistant.io/docs/auth_api",
"resource_documentation": "https://contributors.home-assistant.io/core/internals/auth-api/",
},
),
(
@@ -467,7 +467,7 @@ async def test_well_known_auth_info(
{
"resource": "https://example.com",
"authorization_servers": ["https://example.com"],
"resource_documentation": "https://developers.home-assistant.io/docs/auth_api",
"resource_documentation": "https://contributors.home-assistant.io/core/internals/auth-api/",
},
),
],
+1 -1
View File
@@ -1399,7 +1399,7 @@ async def test_handle_action_received(
await mqtt_mock_entry()
# Cycle through valid modes
# Redefine actions according to https://developers.home-assistant.io/docs/core/entity/climate/#hvac-action
# Redefine actions according to https://contributors.home-assistant.io/core/entities/climate/#hvac-actions
actions = [
"off",
"preheating",
+4 -4
View File
@@ -3336,7 +3336,7 @@ async def test_async_run_job_deprecated(
hass.async_run_job(_test)
assert (
"Detected code that calls `async_run_job`, which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
"https://contributors.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/"
" for replacement options. This will stop working in Home Assistant 2025.4"
) in caplog.text
@@ -3352,7 +3352,7 @@ async def test_async_add_job_deprecated(
hass.async_add_job(_test)
assert (
"Detected code that calls `async_add_job`, which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/03/13/deprecate_add_run_job"
"https://contributors.home-assistant.io/blog/2024/03/13/deprecate_add_run_job/"
" for replacement options. This will stop working in Home Assistant 2025.4"
) in caplog.text
@@ -3369,7 +3369,7 @@ async def test_async_add_hass_job_deprecated(
assert (
"Detected code that calls `async_add_hass_job`,"
" which should be reviewed against "
"https://developers.home-assistant.io/blog/2024/04/07/deprecate_add_hass_job"
"https://contributors.home-assistant.io/blog/2024/04/07/deprecate_add_hass_job/"
" for replacement options. This will stop working in Home Assistant 2025.5"
) in caplog.text
@@ -3602,7 +3602,7 @@ async def test_thread_safety_message(hass: HomeAssistant) -> None:
"Detected code that calls test from a thread other than the event loop, "
"which may cause Home Assistant to crash or data to corrupt. For more "
"information, see "
"https://developers.home-assistant.io/docs/asyncio_thread_safety/#test"
"https://contributors.home-assistant.io/core/internals/thread-safety/#test"
". Please report this issue",
),
):
+6 -6
View File
@@ -79,7 +79,7 @@ async def test_raise_for_blocking_call_async_non_strict_core(
)
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text
warnings = [
@@ -98,7 +98,7 @@ async def test_raise_for_blocking_call_async_non_strict_core(
assert len(warnings) == 0
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text
# no expensive traceback on debug
@@ -141,7 +141,7 @@ async def test_raise_for_blocking_call_async_integration(
)
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text
@@ -188,7 +188,7 @@ async def test_raise_for_blocking_call_async_integration_non_strict(
)
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text
warnings = [
record for record in caplog.get_records("call") if record.levelname == "WARNING"
@@ -206,7 +206,7 @@ async def test_raise_for_blocking_call_async_integration_non_strict(
assert len(warnings) == 0
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text
# no expensive traceback on debug
assert "Traceback (most recent call last)" not in caplog.text
@@ -250,7 +250,7 @@ async def test_raise_for_blocking_call_async_custom(
)
assert (
"For developers, please see "
"https://developers.home-assistant.io/docs/asyncio_blocking_operations/#banned_function"
"https://contributors.home-assistant.io/core/internals/blocking-operations/#banned_function"
) in caplog.text