Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove user agent from API requests #97

Merged
merged 8 commits into from
Aug 1, 2024
Merged

Conversation

DarkSession
Copy link
Contributor

Seems like the Electrolux API does no longer like the User-Agent: Electrolux/2.9 android/9 header. Requests which include this header might receive a HTTP status 429 "Too many requests" response.
This PR removes this header from all API requests. This should address #96

Copy link
Owner

@JohNan JohNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, but no need for commenting code when we have git 😊

custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
custom_components/wellbeing/api.py Outdated Show resolved Hide resolved
@JohNan JohNan merged commit 36a0970 into JohNan:main Aug 1, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants