Core error does not help finding the issue

pls add the component name to the error message

2021-08-19 08:12:19 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery.py", line 158, in async_load_platform
    assert hass_config, "You need to pass in the real hass config"
AssertionError: You need to pass in the real hass config
2021-08-19 08:12:19 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/discovery.py", line 158, in async_load_platform
    assert hass_config, "You need to pass in the real hass config"
AssertionError: You need to pass in the real hass config

Like this?

If it’s an issue with discovery it may not be possible to tell which integration.

Hi tom_I,

yes indeed. the discovery.py.
I already updated to 2021.8.8 and found this error the first time, 5 times.
As everything’s working, it’S maybe an issue which will dissappear the next time. But if not, I have definately no idea which integration caused that and what to to to avoid.
I interpreted the hint: “You need to pass in the real hass config” as an action request

Have you tried upping the logging level to debug?

https://www.home-assistant.io/integrations/logger/#log-levels

Don’t leave it like that though. Lots of writes.

will do that, if the error remains within next reloads or updates.