As Daryl says, please format YAML code correctly for the forum. Looking at your screenshot (which shouldn’t be needed with properly-formatted code), you’ve indented the lines under platform: ledc and platform: monochromatic, which is incorrect.
Indentation is critical in YAML. Take a look at the examples, and match those: