I’ve been using the dir_merge_list
for quite some time now.
In the past few days I’ve did a major refactor and now I see the following errors in the HA log:
2021-11-19 15:53:45 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}', expected ')') for dictionary value @ data['condition'][0]['conditions'][1]['value_template']. Got None. (See /config/configuration.yaml, line 81).
2021-11-19 15:53:45 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: invalid template (TemplateSyntaxError: expected token ',', got 'string') for dictionary value @ data['condition'][0]['conditions'][1]['value_template']. Got None. (See /config/configuration.yaml, line 81).
2021-11-19 15:53:45 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}', expected ')') for dictionary value @ data['condition'][0]['conditions'][1]['value_template']. Got None. (See /config/configuration.yaml, line 81).
The thing is they all point to the same line of code in the configuration.yaml file which is:
automation: !include_dir_merge_list automation
How do I make the error output meaningful information about the actual automation that caused the error?