Automation error with no data or line reference - not sure how to debug

Core: 2021.11.1
Docker

I get this error everytime I check my config, rebooting doesn’t help:

Logger: homeassistant.config
Source: config.py:464
First occurred: 10:41:51 (1 occurrences)
Last logged: 10:41:51
Invalid config for [automation]: Unexpected value for condition: ‘None’. Expected and, device, not, numeric_state, or, state, sun, template, time, trigger, zone @ data[‘condition’][1]. Got None. (See ?, line ?).

I think it started when I added an input_boolean switch into a set of automations (ie so I could turn them off with one switch), but removing all those changes hasn’t fixed the problem, and I don’t know how I’m supposed to figure out where the issue is coming from.

Could there be some remnance of an invalid automation in some of HA’s persisted state somehow? Where would I look?

you have a - condition: somewhere in there with no value.

Thanks. I eventually found it by turning off all my packages one at a time and re-testing the config each time. I originally missed the offending one because the above error originally had a reference to a completly unrelated input_boolean in it, which meant I was looking in the wrong place altogther.

The errors tell you exactly where the problem is.

2nd condition in an automation.