We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88cffb4 commit 926944eCopy full SHA for 926944e
custom_components/ta_cmi/__init__.py
@@ -145,4 +145,10 @@ async def _async_update_data(self) -> dict[str, Any]:
145
146
return return_data
147
except (InvalidCredentialsError, RateLimitError, ApiError) as err:
148
+ _LOGGER.warning("Update failed with error: %s", str(err))
149
+ _LOGGER.debug(
150
+ "Waiting %s seconds to prevent retrying with an rate limit error",
151
+ DEVICE_DELAY,
152
+ )
153
+ await custom_sleep(DEVICE_DELAY)
154
raise UpdateFailed(err) from err
0 commit comments