integration icon indicating copy to clipboard operation
integration copied to clipboard

Handle exceptions when parsing 'retry-after' header in rate limit handling

Open ludeeus opened this issue 1 month ago • 0 comments

This pull request introduces a minor improvement to the rate-limit handling logic in the async_download_file method. The change ensures that the value of the retry-after header is safely parsed, preventing potential errors if the header is missing or not an integer.

  • Improved robustness when handling the retry-after header by adding a try...except block to catch parsing errors, defaulting to 10 seconds if necessary in custom_components/hacs/base.py.

ludeeus avatar Nov 20 '25 21:11 ludeeus