Platform error 'homeassistant.components.octoprint.light'

Hello All,

I am getting an error in my configuration, but I am unable to locate the issue in any of my yaml files. after closer inspection it looks like it is somewhere else, but I’m not sure how to fix. Please advise.
Thank you.

Here is the error in the logs

Platform error: light
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config.py", line 804, in async_process_component_config
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 321, in get_platform
    cache[full_name] = importlib.import_module(
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'homeassistant.components.octoprint.light'

Can you please show your config for octoprint and lights?

Hello Burningstone,

Thanks for your help. The solution was actually pretty easy once I looked deeper. I had a “-platform: octoprint” under the lights in my config. Can’t believe I didn’t notice that before. Thanks for pointing me in the right direction.