From 11b4d75cfbb56593a99e75c047efd5783099acd3 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Thu, 4 Dec 2025 15:10:26 +0100 Subject: [PATCH] Move out zwave_js api docs url from strings.json (#157959) --- homeassistant/components/zwave_js/services.py | 3 +++ homeassistant/components/zwave_js/strings.json | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/zwave_js/services.py b/homeassistant/components/zwave_js/services.py index 9420159b8060..316b58ce628a 100644 --- a/homeassistant/components/zwave_js/services.py +++ b/homeassistant/components/zwave_js/services.py @@ -306,6 +306,9 @@ class ZWaveServices: has_at_least_one_node, ), ), + description_placeholders={ + "api_docs_url": "https://zwave-js.github.io/node-zwave-js/#/api/CCs/index" + }, ) self._hass.services.async_register( diff --git a/homeassistant/components/zwave_js/strings.json b/homeassistant/components/zwave_js/strings.json index cc8186779b1c..4170fb4a594e 100644 --- a/homeassistant/components/zwave_js/strings.json +++ b/homeassistant/components/zwave_js/strings.json @@ -400,11 +400,11 @@ "name": "Entity ID(s)" }, "method_name": { - "description": "The name of the API method to call. Refer to the Z-Wave Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for available methods.", + "description": "The name of the API method to call. Refer to the Z-Wave Command Class API documentation ({api_docs_url}) for available methods.", "name": "Method name" }, "parameters": { - "description": "A list of parameters to pass to the API method. Refer to the Z-Wave Command Class API documentation (https://zwave-js.github.io/node-zwave-js/#/api/CCs/index) for parameters.", + "description": "A list of parameters to pass to the API method. Refer to the Z-Wave Command Class API documentation ({api_docs_url}) for parameters.", "name": "Parameters" } },