Since default_config, can I remove individual line items with !include?

Started with HA before default_config.

My configuration.yaml has a few entries with !include file.yaml after them (e.g. automation: !include automation.yaml).

Is it safe to remove those lines with !include after them now that all those are “built in” and included in default_config or will HA somehow lose my automations and scenes?

I’m pretty sure that you still need the includes for automations & scripts.

I’m not sure about scenes tho.

Do you actually have the “default_config:” line in your configuration.yaml now?

Yup. I added it in because I was tired of missing features that were being added under default_config:.

You do know you can add the ones you want manually?

Yup. But it occured a couple of times were new features were added and I missed them. I got tired of trying to maintain the full list manually just so I could exclude a single feature so I’ve given in and just added default_config.

Now I’m wondering if I still need the old entries with !include after them or if default_config somehow accounts for this?

I honestly don’t know. I’ve never used the default config either.

I believe…if I’m not mistaken…that the last time I setup a default installation the includes for the automations and scripts were explicitly there even with default_config.

You can try it and see.

The worst case is that it won’t work and you will need to re-add those lines. The code stored in the yaml files shouldn’t be affected. If it doesnt work once you put them back everything should back again.