Zoneminder Config Commented out, but still trying to load

I had Zoneminder setup, but didn’t appreciate the CPU requirements. Decided to use different NVR software. I’ve commented out the relevant parts of the zonminder setup from my configuration.yaml file, but I still get errors related to Zoneminder every time I restart the server. It’s not a big deal, but it would be nice to get rid of them.

The error I’m getting:

2021-01-22 08:01:03 ERROR (MainThread) [homeassistant.setup] Error during setup of component zoneminder
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/zoneminder/__init__.py", line 60, in setup
for conf in config[DOMAIN]:
KeyError: 'zoneminder'
2021-01-22 08:01:03 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform zoneminder.switch: Unable to set up component.

I’ve commented out every line of my config file related to zoneminder:

#zoneminder:
#  - host:  !secret zoneminder_ip
#    ssl: true
#    verify_ssl: false
#    username: !secret zoneminder_user
#    password: !secret zoneminder_pass

#switch:
#  - platform: zoneminder
#    command_on: Record
#    command_off: Monitor

I don’t see any integrations or custom components setup for Zoneminder. Anyone have any suggestions of what else I can try?

Please check your developer console for any entity that has been left out by zoneminder. It mostly would be a switch. And if you find such a thing please share the entity name and state.

I’m not seeing anything in developer console… I found some references to Zoneminder switches in my Lovelace UI, which have now been removed. I also had a few commands coming from NodeRed to set these switches, now also removed.

I setup Frigate NVR as my Zoneminder replacement, and there were probably cameras setup in both systems with the same name (which may have had some overlap in entity names). As a test, I’ve removed my Frigate integration and removed all of those entities from my config as well.

After all of the above, I’m not seeing anything in the Dev console named like any of the cameras. I’m still getting the error upon restarting Home Assistant though.

Lovelace and node red components will not create this issue. It should be something left behind with the switch component of the zoneminder. In that case it should have been seen in the developer console also. If it was there we could have removed it from entity registry.