Unit of measurement failing.... why?

I have an esphome component reporting in the incorrect units. I’m hoping someone can find where I’m going wrong.

I’ve tried to use unit of measurement and I get compile errors no matter which one I use.

climate:
  - platform: tuya
    name: " Shop Test Pellet Stove ESPHome"
    unit_of_measurement: "°F"
    switch_datapoint: 1
    target_temperature_datapoint: 106
#   filters:
#     - lambda: return current_temperature_datapoint * (9.0/5.0) + 32.0;
#       unit_of_measurement: "°F"

climate.tuya: [source /config/esphome/test-wood-pellet-stove.yaml:29]
platform: tuya
name: Shop Test Pellet Stove ESPHome
[unit_of_measurement] is an invalid option for [climate.tuya]. Please check the indentation.
unit_of_measurement: °F
switch_datapoint: 1
target_temperature_datapoint: 106

Any pointers on where to put it correctly?

A full discussion is posted here, but this seems like a really basic config question.

Any pointers much appreciated!