Newbie Q to Sensor template

Hi folks,

i´m new to HA, but so far, all things i do are working - until i need to use a code for the configuration.yaml :frowning:
I want to add 2 sensor values, i found out that i need a sensor template. I found a code, but it doesnt work… Someone has an idea?

sensor:
  - platform: template
    sensors:
        wr_leistung_total:
        friendly_name: "wr_leistung_total"
        unit_of_measurement: 'W'
        value_template: "{{ states('sensor.power_ac_fronius_inverter_1_http_192_168_178_52') |float + states('sensor.growatt_shelly_energy_power') | float }}"

thx

I found it, was the lack of spaces in line 5…