Describe the bug
In Urllib3 version >= 1.26.0 Retry(method_whitelist=...) is deprecated. Your component is using method_whitelist here
Your code
None. Your lib is used in the Home-Assistant Spotify component.
Expected behavior
No deprecation warnings. Check if a replacement with allowed_methods is possible. Tested this with a local code change and works good.
Output
/home/rene/repos/core/venv/lib/python3.8/site-packages/urllib3/util/retry.py:252: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
Describe the bug In Urllib3 version >= 1.26.0
Retry(method_whitelist=...)
is deprecated. Your component is using method_whitelist hereYour code None. Your lib is used in the Home-Assistant Spotify component.
Expected behavior No deprecation warnings. Check if a replacement with
allowed_methods
is possible. Tested this with a local code change and works good.Output /home/rene/repos/core/venv/lib/python3.8/site-packages/urllib3/util/retry.py:252: DeprecationWarning: Using 'method_whitelist' with Retry is deprecated and will be removed in v2.0. Use 'allowed_methods' instead
Environment:
Additional context