Solar Produktion for Energy Dashboard (Konvertig Watt to kWh)

Hello everybody.
at the moment i get my solar Prod data from an MQTT Sensor and its only curent Watt. Now i want to use the Engery Dashboard with my Solar Produktion Data but i get a bit in Trouble.
if i setup a sensor like this:

 - platform: integration
    name: Solarroduktion kWH
    source: sensor.solar_produktion
    unit_prefix: k
    unit_time: h

i can´t use the sensor in the energy Dashboard.
What am i doing wrong?
thanks
kind regards
matze

The indentation is not correct. Have a closer look at the example in the docs.

Thanks for Reply
so that is the right notation?

  - platform: integration
    name: Solarroduktion kWH
    source: sensor.solar_produktion
    unit_prefix: k
    round: 2

That is. What you posted originally was not. Everything under platform was indented one space too far.

ok but i don´t find the new “sensor” as my sensor in the energy dashboard i can´t use the sensor. what am i doing wrong