diff --git a/homeassistant/components/knx/services.py b/homeassistant/components/knx/services.py index f63612f97efaa..ebb01e0ef2857 100644 --- a/homeassistant/components/knx/services.py +++ b/homeassistant/components/knx/services.py @@ -39,6 +39,10 @@ _LOGGER = logging.getLogger(__name__) +_DESCRIPTION_PLACEHOLDERS = { + "sensor_value_types_url": "https://www.home-assistant.io/integrations/knx/#value-types" +} + @callback def async_setup_services(hass: HomeAssistant) -> None: @@ -48,6 +52,7 @@ def async_setup_services(hass: HomeAssistant) -> None: SERVICE_KNX_SEND, service_send_to_knx_bus, schema=SERVICE_KNX_SEND_SCHEMA, + description_placeholders=_DESCRIPTION_PLACEHOLDERS, ) hass.services.async_register( @@ -63,6 +68,7 @@ def async_setup_services(hass: HomeAssistant) -> None: SERVICE_KNX_EVENT_REGISTER, service_event_register_modify, schema=SERVICE_KNX_EVENT_REGISTER_SCHEMA, + description_placeholders=_DESCRIPTION_PLACEHOLDERS, ) async_register_admin_service( @@ -71,6 +77,7 @@ def async_setup_services(hass: HomeAssistant) -> None: SERVICE_KNX_EXPOSURE_REGISTER, service_exposure_register_modify, schema=SERVICE_KNX_EXPOSURE_REGISTER_SCHEMA, + description_placeholders=_DESCRIPTION_PLACEHOLDERS, ) async_register_admin_service( diff --git a/homeassistant/components/knx/strings.json b/homeassistant/components/knx/strings.json index 200b90a49e00b..fc6c04b318b9c 100644 --- a/homeassistant/components/knx/strings.json +++ b/homeassistant/components/knx/strings.json @@ -674,7 +674,7 @@ "name": "Remove event registration" }, "type": { - "description": "If set, the payload will be decoded as given DPT in the event data `value` key. KNX sensor types are valid values (see https://www.home-assistant.io/integrations/knx/#value-types).", + "description": "If set, the payload will be decoded as given DPT in the event data `value` key. KNX sensor types are valid values (see {sensor_value_types_url}).", "name": "Value type" } }, @@ -704,7 +704,7 @@ "name": "Remove exposure" }, "type": { - "description": "Telegrams will be encoded as given DPT. 'binary' and all KNX sensor types are valid values (see https://www.home-assistant.io/integrations/knx/#value-types).", + "description": "Telegrams will be encoded as given DPT. 'binary' and all KNX sensor types are valid values (see {sensor_value_types_url}).", "name": "Value type" } }, @@ -740,7 +740,7 @@ "name": "Send as Response" }, "type": { - "description": "If set, the payload will not be sent as raw bytes, but encoded as given DPT. KNX sensor types are valid values (see https://www.home-assistant.io/integrations/knx/#value-types).", + "description": "If set, the payload will not be sent as raw bytes, but encoded as given DPT. KNX sensor types are valid values (see {sensor_value_types_url}).", "name": "Value type" } },