-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Fix wallbox jwt issue #79948
Fix wallbox jwt issue #79948
Conversation
@cdce8p or @epenet does either of you have time for a review? Basically I'm trying to implement a fix for an issue which currently prevents the wallbox integration from working. Root cause of this issue is a JWT token of the api that expires (earlier than expected). The fix I'm implementing here is forcing the token to be empty so it is always being refreshed. I consider this a temp fix; everybody is now suffering from this issue and this solution works. However, I'm trying to find a more elegant solution in which the token is refreshed less often. |
…ne/core into wallbox_fix_jwt_issue
@balloob small bump, I really like this PR to be merged to fix the issue. I think that the change now is quite minor (but the issue quite significant) |
Please update the PR description according to the current PR changes. Please add a link to a changelog or GitHub commit compare view for the version bump in the PR description. Thanks! |
Done |
I added a link to the release. |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Bump Wallbox package * remove debug message * Force update of auth token by emptying it first * Force token refresh by emptying token Improve exception handling * include tests * Update __init__.py * Removed the clearing ot jwt token, issue is fixed by upstream fix in wallbox package. * Catch connectionerror * Update homeassistant/components/wallbox/__init__.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Run black Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Proposed change
I have improved exception handling to prevent spamming the log file when errors occur, something that was also caused by this issue.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: