Latest Update Broke Automations

After the latest update I am getting the following error and all my automations have broken. I haven’t changed anything recently so not sure what is causing it? Can anyone point me in the direction on how to troubleshoot?

2023-08-10 09:37:00.458 ERROR (MainThread) [homeassistant.setup] Error during setup of component automation
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 259, in async_setup
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 976, in _async_process_config
entities = await _create_automation_entities(hass, updated_automation_configs)
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 860, in _create_automation_entities
File "/usr/src/homeassistant/homeassistant/components/automation/__init__.py", line 989, in _async_process_if
File "/usr/src/homeassistant/homeassistant/components/device_automation/condition.py", line 55, in async_condition_from_config
File "/usr/src/homeassistant/homeassistant/components/device_automation/toggle_entity.py", line 146, in async_condition_from_config
2023-08-10 09:37:00.463 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: automation
2023-08-10 09:37:00.464 ERROR (MainThread) [homeassistant.setup] Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: automation')

Several have had this or similar issue since upgrading to 2023.8 .I don’t think that the root cause has been identified. My solution has been to reboot my Yellow Box and then everything came back.
I created an Automation that restarts HA every day at 4 am and, whether related or not, I have not had an issue in 2 days.
My guess is that the problem will be identified and resolved in a next upgrade. In the meantime, try a reboot.

I ended up resolving this issue by removing the automations 1 by 1 and restarting to ID the one that was causing the issue. I have since found it and have just removed it for the time being.