diff --git a/.claude/agents/raise-pull-request.md b/.claude/agents/raise-pull-request.md index e466df6fa7e8..2e7694540531 100644 --- a/.claude/agents/raise-pull-request.md +++ b/.claude/agents/raise-pull-request.md @@ -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 | |------|---------------| diff --git a/.claude/skills/ha-integration-knowledge/SKILL.md b/.claude/skills/ha-integration-knowledge/SKILL.md index c7df10dacd54..f2b6b42bc75d 100644 --- a/.claude/skills/ha-integration-knowledge/SKILL.md +++ b/.claude/skills/ha-integration-knowledge/SKILL.md @@ -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 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7dfd7c71488b..11d6c329b17d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -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 diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 355d778615d7..11186d78ca4f 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -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 diff --git a/.github/workflows/quality-scale-reviewer.md b/.github/workflows/quality-scale-reviewer.md index ba1bba0754d5..7f1140098ad8 100644 --- a/.github/workflows/quality-scale-reviewer.md +++ b/.github/workflows/quality-scale-reviewer.md @@ -349,7 +349,7 @@ Use this format and keep the visible part to one or two sentences: - Evidence: `:` and the relevant code. - Recommendation: . -- Rule: https://developers.home-assistant.io/docs/core/integration-quality-scale/rules/ +- Rule: https://contributors.home-assistant.io/core/quality-scale/rules/ ``` diff --git a/AI_POLICY.md b/AI_POLICY.md index 8b247e95e758..5f41cfd16dce 100644 --- a/AI_POLICY.md +++ b/AI_POLICY.md @@ -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 -. In case of differences, +. In case of differences, the published version applies. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1df57d84e5e7..f854ef2ab06a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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 diff --git a/README.rst b/README.rst index 85c632f7eb1d..4125a7ffbc53 100644 --- a/README.rst +++ b/README.rst @@ -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 `__ and the `section on creating your own -components `__. +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 `__ and the `section on creating your own +components `__. If you run into issues while using Home Assistant or during development of a component, check the `Home Assistant help section `__ of our website for further help and information. diff --git a/homeassistant/components/auth/login_flow.py b/homeassistant/components/auth/login_flow.py index 1eaace5209a5..7e7f9756c83a 100644 --- a/homeassistant/components/auth/login_flow.py +++ b/homeassistant/components/auth/login_flow.py @@ -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/" ), } ) diff --git a/homeassistant/components/google_weather/weather.py b/homeassistant/components/google_weather/weather.py index df8e1b7baa66..cc5a6d47a049 100644 --- a/homeassistant/components/google_weather/weather.py +++ b/homeassistant/components/google_weather/weather.py @@ -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, diff --git a/homeassistant/components/mqtt/config_flow.py b/homeassistant/components/mqtt/config_flow.py index 3d1f400861f8..670ab1aae4f9 100644 --- a/homeassistant/components/mqtt/config_flow.py +++ b/homeassistant/components/mqtt/config_flow.py @@ -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 = { diff --git a/homeassistant/components/overkiz/water_heater/atlantic_domestic_hot_water_production_mlb_component.py b/homeassistant/components/overkiz/water_heater/atlantic_domestic_hot_water_production_mlb_component.py index 895b95d0577f..726496d3b26e 100644 --- a/homeassistant/components/overkiz/water_heater/atlantic_domestic_hot_water_production_mlb_component.py +++ b/homeassistant/components/overkiz/water_heater/atlantic_domestic_hot_water_production_mlb_component.py @@ -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 diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index 565fe640e1d6..a71d3c6868bd 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -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", diff --git a/homeassistant/core.py b/homeassistant/core.py index 4591bc6ed0ea..b21c36f41dfe 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -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", diff --git a/homeassistant/helpers/frame.py b/homeassistant/helpers/frame.py index 3734871ec818..119cf167d091 100644 --- a/homeassistant/helpers/frame.py +++ b/homeassistant/helpers/frame.py @@ -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, diff --git a/homeassistant/loader.py b/homeassistant/loader.py index 7fc6fb8147a3..b95dabf4fd10 100644 --- a/homeassistant/loader.py +++ b/homeassistant/loader.py @@ -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, diff --git a/homeassistant/util/loop.py b/homeassistant/util/loop.py index 190e152c51f2..8cc72fb02567 100644 --- a/homeassistant/util/loop.py +++ b/homeassistant/util/loop.py @@ -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('.', '')}" ) diff --git a/pylint/plugins/README.md b/pylint/plugins/README.md index 4fba09c3d436..010dfec3e211 100644 --- a/pylint/plugins/README.md +++ b/pylint/plugins/README.md @@ -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` diff --git a/pylint/plugins/pylint_home_assistant/checkers/actions/service_registration.py b/pylint/plugins/pylint_home_assistant/checkers/actions/service_registration.py index 3adb997bbf29..a914a2d9dea6 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/actions/service_registration.py +++ b/pylint/plugins/pylint_home_assistant/checkers/actions/service_registration.py @@ -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 " diff --git a/pylint/plugins/pylint_home_assistant/checkers/actions/services_module.py b/pylint/plugins/pylint_home_assistant/checkers/actions/services_module.py index e7633107118f..d26b56fcc821 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/actions/services_module.py +++ b/pylint/plugins/pylint_home_assistant/checkers/actions/services_module.py @@ -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 diff --git a/pylint/plugins/pylint_home_assistant/checkers/config_flow/no_polling.py b/pylint/plugins/pylint_home_assistant/checkers/config_flow/no_polling.py index 21d755c7f9a8..76b7f612f16d 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/config_flow/no_polling.py +++ b/pylint/plugins/pylint_home_assistant/checkers/config_flow/no_polling.py @@ -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 = () diff --git a/pylint/plugins/pylint_home_assistant/checkers/config_flow/unique_id_no_ip.py b/pylint/plugins/pylint_home_assistant/checkers/config_flow/unique_id_no_ip.py index 42009327a9dc..8c022aed474b 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/config_flow/unique_id_no_ip.py +++ b/pylint/plugins/pylint_home_assistant/checkers/config_flow/unique_id_no_ip.py @@ -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 = () diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/config_entry_unloading.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/config_entry_unloading.py index 29aa75a922e6..df93b20df2c0 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/config_entry_unloading.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/config_entry_unloading.py @@ -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 " diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/diagnostics.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/diagnostics.py index bd4218844143..3a4152d8dacb 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/diagnostics.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/diagnostics.py @@ -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 " diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/entity_unique_id.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/entity_unique_id.py index 0f7388de76db..759a605b21f3 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/entity_unique_id.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/entity_unique_id.py @@ -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", ( diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/has_entity_name.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/has_entity_name.py index 65ab4f3e77f8..e582f25d7109 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/has_entity_name.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/has_entity_name.py @@ -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", ( diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/parallel_updates.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/parallel_updates.py index 7305701c5983..3dd498ceaf51 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/parallel_updates.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/parallel_updates.py @@ -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 " diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/reauthentication_flow.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/reauthentication_flow.py index 1f6bb35300bc..b3afd97872cc 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/reauthentication_flow.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/reauthentication_flow.py @@ -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 " diff --git a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/test_before_configure.py b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/test_before_configure.py index f4dd44655af2..cdab66b5044d 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/quality_scale/test_before_configure.py +++ b/pylint/plugins/pylint_home_assistant/checkers/quality_scale/test_before_configure.py @@ -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", ( diff --git a/pylint/plugins/pylint_home_assistant/checkers/runtime_data.py b/pylint/plugins/pylint_home_assistant/checkers/runtime_data.py index 0c29cf5ef95a..cdd346580e77 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/runtime_data.py +++ b/pylint/plugins/pylint_home_assistant/checkers/runtime_data.py @@ -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 = () diff --git a/pylint/plugins/pylint_home_assistant/checkers/sequential_executor_jobs.py b/pylint/plugins/pylint_home_assistant/checkers/sequential_executor_jobs.py index a0bcb7c07450..ebf204a58b93 100644 --- a/pylint/plugins/pylint_home_assistant/checkers/sequential_executor_jobs.py +++ b/pylint/plugins/pylint_home_assistant/checkers/sequential_executor_jobs.py @@ -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 diff --git a/pylint/plugins/pyproject.toml b/pylint/plugins/pyproject.toml index 054ba832fa29..82c7d4c176f5 100644 --- a/pylint/plugins/pyproject.toml +++ b/pylint/plugins/pyproject.toml @@ -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" diff --git a/pyproject.toml b/pyproject.toml index f6df28eeed06..1f923d010929 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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/" diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 69475419b016..a977407be936 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -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" ) diff --git a/script/hassfest/quality_scale.py b/script/hassfest/quality_scale.py index 82e286d401df..870c97272fff 100644 --- a/script/hassfest/quality_scale.py +++ b/script/hassfest/quality_scale.py @@ -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 = [ diff --git a/script/hassfest/quality_scale_validation/config_flow.py b/script/hassfest/quality_scale_validation/config_flow.py index d1ac70ab469e..d3790c846722 100644 --- a/script/hassfest/quality_scale_validation/config_flow.py +++ b/script/hassfest/quality_scale_validation/config_flow.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/discovery.py b/script/hassfest/quality_scale_validation/discovery.py index 662fefc94f96..31371594597f 100644 --- a/script/hassfest/quality_scale_validation/discovery.py +++ b/script/hassfest/quality_scale_validation/discovery.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/reconfiguration_flow.py b/script/hassfest/quality_scale_validation/reconfiguration_flow.py index 28cc0ef6d431..5d65e2d8ca21 100644 --- a/script/hassfest/quality_scale_validation/reconfiguration_flow.py +++ b/script/hassfest/quality_scale_validation/reconfiguration_flow.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/runtime_data.py b/script/hassfest/quality_scale_validation/runtime_data.py index 3562d8979673..11f4edd4e22f 100644 --- a/script/hassfest/quality_scale_validation/runtime_data.py +++ b/script/hassfest/quality_scale_validation/runtime_data.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/strict_typing.py b/script/hassfest/quality_scale_validation/strict_typing.py index 1f5a56658356..3d85a7a7f7ff 100644 --- a/script/hassfest/quality_scale_validation/strict_typing.py +++ b/script/hassfest/quality_scale_validation/strict_typing.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/test_before_setup.py b/script/hassfest/quality_scale_validation/test_before_setup.py index 1e19c80a11cc..aa6d458bb898 100644 --- a/script/hassfest/quality_scale_validation/test_before_setup.py +++ b/script/hassfest/quality_scale_validation/test_before_setup.py @@ -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 diff --git a/script/hassfest/quality_scale_validation/unique_config_entry.py b/script/hassfest/quality_scale_validation/unique_config_entry.py index 83b3d20bd80e..57538eadeae2 100644 --- a/script/hassfest/quality_scale_validation/unique_config_entry.py +++ b/script/hassfest/quality_scale_validation/unique_config_entry.py @@ -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 diff --git a/script/hassfest/requirements.py b/script/hassfest/requirements.py index 78ed4cd90064..08390106e330 100644 --- a/script/hassfest/requirements.py +++ b/script/hassfest/requirements.py @@ -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", diff --git a/script/json_schemas/manifest_schema.json b/script/json_schemas/manifest_schema.json index 8b0ea255f93a..75cec2eaf3e1 100644 --- a/script/json_schemas/manifest_schema.json +++ b/script/json_schemas/manifest_schema.json @@ -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 } }, diff --git a/script/scaffold/docs.py b/script/scaffold/docs.py index e3369057571a..1da3b6155799 100644 --- a/script/scaffold/docs.py +++ b/script/scaffold/docs.py @@ -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" diff --git a/script/scaffold/gather_info.py b/script/scaffold/gather_info.py index 960b7e81736d..dc2c0d835cdc 100644 --- a/script/scaffold/gather_info.py +++ b/script/scaffold/gather_info.py @@ -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": [ [ diff --git a/script/scaffold/templates/config_flow_oauth2/integration/api.py b/script/scaffold/templates/config_flow_oauth2/integration/api.py index 0e5bc8d14487..5d66c32136d0 100644 --- a/script/scaffold/templates/config_flow_oauth2/integration/api.py +++ b/script/scaffold/templates/config_flow_oauth2/integration/api.py @@ -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): diff --git a/tests/components/androidtv/test_media_player.py b/tests/components/androidtv/test_media_player.py index e03d209bf3b9..7efe59636927 100644 --- a/tests/components/androidtv/test_media_player.py +++ b/tests/components/androidtv/test_media_player.py @@ -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) diff --git a/tests/components/auth/test_login_flow.py b/tests/components/auth/test_login_flow.py index d285604c75fb..836b7da5c95a 100644 --- a/tests/components/auth/test_login_flow.py +++ b/tests/components/auth/test_login_flow.py @@ -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/", }, ), ], diff --git a/tests/components/mqtt/test_climate.py b/tests/components/mqtt/test_climate.py index 891defba8513..a59120b46200 100644 --- a/tests/components/mqtt/test_climate.py +++ b/tests/components/mqtt/test_climate.py @@ -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", diff --git a/tests/test_core.py b/tests/test_core.py index 5109ef1435ff..056a16090323 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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", ), ): diff --git a/tests/util/test_loop.py b/tests/util/test_loop.py index fd3b9c934611..582e45ff7fa5 100644 --- a/tests/util/test_loop.py +++ b/tests/util/test_loop.py @@ -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