Setting the value of an input_number

I want to set the value of an input_number to the value of another input_number. After searching the documentation and forum the simplest way I’ve found that works is:

action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.variable_b
      value: "{{ states('input_number.variable_b') }}"
    target:
      entity_id: input_number.variable_a

There must surely be a simpler way to do this. In any other language I could simply write:

  input_number.variable_a = input_number.variable_b

or maybe:

  $input_number.variable_a = $input_number.variable_b

No this is as simple as it gets:

action:
  - service: input_number.set_value
    data:
      entity_id: input_number.variable_a
      value: "{{ states('input_number.variable_b') }}"

If you want a different experience than jina templating there are options:

https://appdaemon.readthedocs.io/en/latest/index.html

https://hacs-pyscript.readthedocs.io/en/latest/overview.html

Thanks for the quick response.

Your YAML is a definite improvement on mine, but still fairly hideous. I will be trying the Python alternatives - they look much more promising!