integration
integration copied to clipboard
Handle exceptions when parsing 'retry-after' header in rate limit handling
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-afterheader by adding atry...exceptblock to catch parsing errors, defaulting to 10 seconds if necessary incustom_components/hacs/base.py.