Is there a way to add a description to a template sensor?

When defining template sensors, I’d like to add a description as a reminder how it works or where it gets its data from. Is this possible?

Something like this:

sensor:
  - platform: template
    sensors:
      veryspecialsensor:
        value_template: "if this then that else something else"
        friendly_name: "some friendly name"
        description: "This is a very sophisticated sensor, taking its data from this and that and so on"

You can use a YAML comment but it won’t appear anywhere in the UI.

sensor:
  - platform: template
    sensors:
     # This sensor is for ...
      veryspecialsensor:
        value_template: "if this then that else something else"
        friendly_name: "some friendly name"

If you want the description to appear as an attribute of the Template Sensor, use Manual Customization to create a custom attribute called description.

Example (in configuration.yaml)

homeassistant:
  customize:
    sensor.veryspecialsensor:
      description: "This is a very sophisticated sensor, taking its data from this and that and so on"

customize seems the way to go for me. Thanks alot!