core
core copied to clipboard
Remove sunweg integration
Breaking change
Removing Sunweg integration due to authentication with CAPTCHA. The integration can't work without authentication.
Proposed change
https://github.com/rokam/sunweg/issues/13
Type of change
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New integration (thank you!)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Deprecation (breaking change to happen in the future)
- [x] Breaking change (fix/feature causing existing functionality to break)
- [ ] Code quality improvements to existing code or addition of tests
Additional information
- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request:
Checklist
- [ ] The code change is tested and works locally.
- [ ] Local tests pass. Your PR cannot be merged unless tests pass
- [ ] There is no commented out code in this PR.
- [ ] I have followed the development checklist
- [ ] I have followed the perfect PR recommendations
- [ ] The code has been formatted using Ruff (
ruff format homeassistant tests) - [ ] Tests have been added to verify that the new code works.
If user exposed functionality or configuration variables are added/changed:
- [ ] Documentation added/updated for www.home-assistant.io
If the code communicates with devices, web services, or third-party tools:
- [ ] The manifest file has all fields filled out correctly.
Updated and included derived files by running:python3 -m script.hassfest. - [ ] New or updated dependencies have been added to
requirements_all.txt.
Updated by runningpython3 -m script.gen_requirements_all. - [ ] For the updated dependencies - a link to the changelog, or at minimum a diff between library versions is added to the PR description.
To help with the load of incoming pull requests:
- [ ] I have reviewed two other open pull requests in this repository.
Hey there @joostlek, mind taking a look at this pull request as it has been labeled with an integration (analytics_insights) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of analytics_insights can trigger bot actions by commenting:
@home-assistant closeCloses the pull request.@home-assistant rename Awesome new titleRenames the pull request.@home-assistant reopenReopen the pull request.@home-assistant unassign analytics_insightsRemoves the current integration label and assignees on the pull request, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the pull request.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the pull request.
(Just trying to do due diligence to avoid removing the integration to find a new way to do it in a month and having to add it again)
There is no documented API and it was using the main page authentication form to retrieve the auth token. But sunweg just added a recaptcha to login page. https://sun.weg.net/sign-in
I tried to contact them without a response for a month. So, there is nothing that can be done ATM.
And is there a way we can still use the API via a token we can fetch via the browser?
Yes, but the token will expire in some days and there is no refresh token method.
Right, I will discuss with others, I think it will be okay to remove it. But since this is a config entry we should raise an issue. Please check integrations like myq, life360 or mazda. They help the user to gracefully show the user to remove it.
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. If you are the author of this PR, please leave a comment if you want to keep it open. Also, please rebase your PR onto the latest dev branch to ensure that it's up to date with the latest changes. Thank you for your contribution!
@joostlek @rokam What is the state on this one?
../Frenck
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. If you are the author of this PR, please leave a comment if you want to keep it open. Also, please rebase your PR onto the latest dev branch to ensure that it's up to date with the latest changes. Thank you for your contribution!
Right, we still need to get on with this. I am not sure why the CI cancelled the jobs
Right, we still need to get on with this. I am not sure why the CI cancelled the jobs
I think it's running
@joostlek @rokam What is the state on this one?
../Frenck
Looks ready for me.
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. If you are the author of this PR, please leave a comment if you want to keep it open. Also, please rebase your PR onto the latest dev branch to ensure that it's up to date with the latest changes. Thank you for your contribution!
rebased
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks :+1:
@joostlek is it fine to proceed with the removal?
There are still 2 unresolved comments.
@rokam I think you missed this one: https://github.com/home-assistant/core/pull/124230#discussion_r1992046863
Also, should we implement async_remove_entry like the myq integration does, so that we automatically remove disabled and ignored entries?
@rokam I think you missed this one: #124230 (comment)
Also, should we implement
async_remove_entrylike themyqintegration does, so that we automatically remove disabled and ignored entries?
I did as requested, although I think that the unload was enought.
I think you are right, we can remove the unload function
@rokam I've removed the code from async_unload_entry and added tests for the repair issue and entry removal. Let me know if it is fine for you so we can merge this.
There's a merge conflict.