mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
Limit log spam by ConfigEntryNotReady (#47201)
This commit is contained in:
@@ -257,12 +257,19 @@ class ConfigEntry:
|
||||
self.state = ENTRY_STATE_SETUP_RETRY
|
||||
wait_time = 2 ** min(tries, 4) * 5
|
||||
tries += 1
|
||||
_LOGGER.warning(
|
||||
"Config entry '%s' for %s integration not ready yet. Retrying in %d seconds",
|
||||
self.title,
|
||||
self.domain,
|
||||
wait_time,
|
||||
)
|
||||
if tries == 1:
|
||||
_LOGGER.warning(
|
||||
"Config entry '%s' for %s integration not ready yet. Retrying in background",
|
||||
self.title,
|
||||
self.domain,
|
||||
)
|
||||
else:
|
||||
_LOGGER.debug(
|
||||
"Config entry '%s' for %s integration not ready yet. Retrying in %d seconds",
|
||||
self.title,
|
||||
self.domain,
|
||||
wait_time,
|
||||
)
|
||||
|
||||
async def setup_again(now: Any) -> None:
|
||||
"""Run setup again."""
|
||||
|
Reference in New Issue
Block a user