I am trying to clean up my config by moving out of the scripts.yaml file but I am encountering an error while doing so.
I am following the same approach as I have already successfully done with automations and started by changing the script reference in configuration.yaml to read
script: !include_dir_list script/live/
and in the script/live directory I added the files with my scripts assuming this would be a walk in the park, however it was not…
Right now I have only one file added to script/live and the content of this is
Hello and thank you all for your help and inout. As I am sure you know already your suggestions did the trick and after I changed this entry in my configuration.yaml to
script: !include_dir_merge_named script/live/
everything is working fine.
Thanks guys!
(BTW, Is there any logic behind this difference between automations and scripts or is this just the way it is?)
It’s simply due to how they are defined in YAML. On uses a list and the other doesn’t. As to why, I’m not sure.
Please mark the post that answered your question with the Solution tag. Only you, the author of this topic, can do that. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has an accepted solution. It also automatically places a link beneath your first post that leads to the Solution. All of this helps other users find answers to similar questions.