diff --git a/homeassistant/components/withings/common.py b/homeassistant/components/withings/common.py index 56f7f7cdf91..8682df59e0d 100644 --- a/homeassistant/components/withings/common.py +++ b/homeassistant/components/withings/common.py @@ -494,7 +494,7 @@ class ConfigEntryWithingsApi(AbstractWithingsApi): """Perform an async request.""" asyncio.run_coroutine_threadsafe( self.session.async_ensure_token_valid(), self._hass.loop - ) + ).result() access_token = self._config_entry.data["token"]["access_token"] response = requests.request( @@ -648,7 +648,11 @@ class DataManager: try: return await func() except Exception as exception1: # pylint: disable=broad-except - await asyncio.sleep(0.1) + _LOGGER.debug( + "Failed attempt %s of %s (%s)", attempt, attempts, exception1 + ) + # Make each backoff pause a little bit longer + await asyncio.sleep(0.5 * attempt) exception = exception1 continue