Template sensor unit of measure in UI

Hello all,
I have a template sensor:

- sensor:
  - name: "Power usage"
    unique_id: power_usage
    state: >-
      {{ states('sensor.shellyem3_channel_a_power')|float(0) +
       states('sensor.shellyem3_channel_b_power')|float(0) +
       states('sensor.shellyem3_channel_c_power')|float(0) }}
    unit_of_measurement: W
    device_class: power
    state_class: measurement

There is no possibility to change unit of measure in though UI - there is no such field.
Is this a limitation or am I doing something wrong?

Are you running 2023.3, which is where it was introduced?

Should look like this:

Appears on my template sensors, even the ones with state_class: measurement.

The thing was that there were no field “Unit of Measurement”
Thanks for your answer, it appeared after restart of HA, and I’m not sure what I have changed .