Component not found: custom_components

I have Home Assistant running in a Docker container on my Synology NAS.
Yesterday I added my first custom component: volkswagencarnet
This was working great (just discovered hass this weekend but man do I love it! :slight_smile: )
Today I tried adding a telegram_bot and when I clicked check configuration it returned:
Configuration invalid
Component not found: custom_components

So I thought must be something wrong with my bot config, tried some stuff that didn’t help. Then I deleted everything I added for the bot and still get the same error message about the custom_components component not being found…

I’m still easing in to yaml so might be something I’m missing. But after an hour of searching I got frustrated so any help would be nice!

can you share your config, esp where you refer to volkswagencarnet?
(remove any credentials or PII)
Also can you share where you saved the custom_component?

If you have this message you have:

cucom_components:

In your configuration, that is not correct.

Thanks for the quick replies!

This is the relevant section of my config:

--- start of copied section ---
# Apple HomeKit
homekit:
    filter:
        include_domains:
            - light
            - media_player
            - climate
    entity_config:
        media_player.televisie:
            feature_list:
                - feature: on_off
                - feature: play_pause
                - feature: toggle_mute

custom_components:
  # Volkswagen Carnet
  volkswagencarnet:
      username: user
      password: pass
      update_interval: 
          minutes: 5

group: !include groups.yaml
--- end of copied section ---

The custom component is located like this:
dockersharedfolder/homeassistantfolder/custom_components/volkswagencarnet/somepyfiles.py

with that location you want:

# Volkswagen Carnet
volkswagencarnet:
  username: user
  password: pass
  update_interval: 
    minutes: 5
```

Thanks! Is I feared, just a small error.
But still strange that it was working yesterday with seemingly the exact same code…

I have seen strange things with caching in the Chrome browser where things looked like they were working but were actually broken. The browser was using some cached components. :frowning:

So are you saying he did not need the custom_components: reference its just Im having a similar thing with trying to set up Alexa_Media (player) I get;-
Configuration invalid
Component not found: alexa_media
Thanks