How to find the exact reason of "Module homeassistant.components.sensor is logging too frequently"

Hi!
I’m a fan of the Home Assistant project. My smart home is based on HA and is regularly updated.
I have over 150 devices, over 1,200 units, and over 300 assistants.
For the past few days, after restarting HA, I’ve been getting an error in the logs:

Logger: homeassistant.util.logging
Source: util/logging.py:74

The homeassistant.components.sensor module is logging too frequently. 200 messages since the last count.

I thought the integration helpers might be the cause, so I checked all of them (does the source exist? Do they have the correct unit and type? etc.). It didn’t help. I have also REST sensors - maybe they are causing error before sensors are updated?

How can I find the exact cause of this error—which sensor is causing the problem?

Raising the logging level to debug might reveal more.

Have you got silly fast custom scan intervals set for these (like 1 second)?

Thank You for quick reply!

I increased logging level:

logger:
  default: info
  logs:
    homeassistant.util.logging: error

And now… error didn’t appear after restart :smiley:

Most of my REST have time of scan set to 60s. Couple of them have 10s.

Ooops, my fault. By changing to error level I hide warnings.

With debug level warning occured, but no more informations were revealed.

That should not be an issue.

Post your raw logs

My fresh (after restart) log doesn’t fullfil limitations of one message. How should I upload them? To external sharing service? Or divide into several posts?