Solaredge_Local Integration

I try to connect my solar panel system to HA. I have a SolarEdge inverter. Following the instructions in the HA-documentation I added to my configuration.yaml file:

# Solar panels
sensor:
  - platform: solaredge_local
    name: SolarEdge
    ip_address: 192.168.2.15

And got error message:

duplicated mapping key (60:1)

 57 |         name: RC1 4-4
 58 |         
 59 | # Solar Panels
 60 | sensor:
------^
 61 |   - platform: solaredge_local

Then I changed the yaml to:

# Solar panels
solaredge_local:
  - sensor: solaredge_local
    name: SolarEdge
    ip_address: 192.168.2.15

which was accepted without an error.
I restarted HA and got error message:

The solaredge_local integration does not support YAML configuration
(Error ⸱ Reported by Home Assistant Core Integration)
The solaredge_local integration does not support configuration via YAML file.
You may not notice any obvious issues with the integration, but any configuration settings defined in YAML are not actually applied.

So I deleted the additions to the yaml.config file and went via Settings/Devices and services to Integrations, tried to add the solaredge_local integration and got the message:

This integration cannot be added from the UI
You can add this integration by including it in your 'configuration.yaml'. See the documentation for more information.

And I was back where I begun …
What did I do wrong?

Nobody any idea?
Let me summarize my above post:
I try to add the solaredge_local integration to my HA.
When I go via “Settings / Devices and services / Integrations / Add integration” I get an error message telling me to add it in configuration.yaml.
When I add it to configuration.yaml (which following the documentation is the right way) I get an error message telling me “The solaredge_local integration does not support YAML configuration”
So catch 22 - what to do?