Component automation failed to initialize - Solved

I’m trying to split up my config to make it more readable. When I enable automation with include_dir_list I get this error:

homeassistant.bootstrap: component automation failed to initialize

I’ve tried it with files in the configs in the folder and with an empty folder, same outcome. The option works correctly with scenes and the same setup.

Here’s the relevant config:

scene: !include_dir_list scenes
automation: !include_dir_list automation

And directory layout:

ls automation

arrive_lights.yml night_lights_on.yml onkyo_on_for_sonos.yml
night_lights_off.yml onkyo_off_for_sonos.yml

Thanks!

-Mark

This happened because my configs were .yml and not .yaml