Skip to content

Commit

Permalink
Update coordinator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-ha authored Nov 18, 2024
1 parent 8da9b7e commit a4eb6d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/mg_saic/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def _async_update_data(self):
except (GenericResponseException, UpdateFailed) as e:
LOGGER.warning("Data invalid or generic: %s", e)
retries += 1
delay = min(retries * RETRY_BACKOFF_FACTOR, MAX_RETRY_DELAY)
delay = min(RETRY_BACKOFF_FACTOR, MAX_RETRY_DELAY)
LOGGER.info(
"Retrying in %s seconds... (Attempt %d/%d)",
delay,
Expand All @@ -148,7 +148,7 @@ async def _async_update_data(self):
except Exception as e:
LOGGER.error("Error fetching data: %s", e)
retries += 1
delay = min(retries * RETRY_BACKOFF_FACTOR, MAX_RETRY_DELAY)
delay = min(RETRY_BACKOFF_FACTOR, MAX_RETRY_DELAY)
LOGGER.info(
"Retrying in %s seconds... (Attempt %d/%d)",
delay,
Expand Down

0 comments on commit a4eb6d4

Please sign in to comment.