Duplicated Mapping Key Problem

I have a problem with the config of HA.
In the editor I get an exclamation mark, but the start is not hindered.
But I can not find the error, the following error message:
duplicated mapping key (101:1)
98 |
99 |
100 | #Powercalc
101 | sensor:
-------^
102 | platform: powercalc
103 | name: standby

Config:
sensor:
  - platform: powercalc
    name: standby
    unique_id: standby_use
    daily_fixed_energy:
      value: 136
      unit_of_measurement: W
      on_time: 24:00:00

Can anyone help me with this?

First of all … format your code/yaml

You probably have 'sensor: ’ multiple times, either in configuration.yaml or in one of the delegated files (if you use them)

2 Likes

Format the yaml
I’ll check this with the sensor. What do you mean with “delegated” files?

Ok got it. Did not see the sensor on top. Thanks fort the fast help.