-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Add config flow to Hydrawise #95589
Add config flow to Hydrawise #95589
Conversation
Hey there @ptcryan, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hi, I think you have to move the termination date for the yaml to 2024.1. With 2023.7 they say it have to work at least 6 months: |
ping? |
6 months is a long time. I wonder if I should go back to my original approach and migrate to the new API at the same time as introducing config flow. The old API seems to be broken for most people at this point (based on user reports), so I'm not sure it's even worth maintaining compatibility. Then we just keep the existing code for the old API with the 6 month deprecation window, and the new code can carry on without having to worry about it. |
Not sure what a new api has anything to do with a config flow? Thanks |
The new API uses user/password authentication instead of an API token. So if we do config flow now and then migrate to the new API, users will have two migrations in quick succession. Making the switch to config flow at the same time as the API change means only a single breaking change. That seems nicer from a user's point of view. |
Nothing breaks with the config flow as we should do an import, we just need to tell people to remove the yaml after the import has been made. The api change with all it considerations needs to be it's own PR/change anyhow so it would seem easier to me to do the config flow first and second the api change in a separate PR |
Okay, I updated the deprecation dates. We can leave this as-is and I'll do the full API migration separately. |
Ping: Any update needed? as 2023.10 is coming soon. |
@gjohansson-ST If you don't have time to review this, can you unassign and let someone else review? This has been ongoing for almost 3 months, which is a long time for a relatively simple change that's blocking other updates. |
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.
Looks good. Just need to fix so CI passes (requirements fails).
Fixed. |
Codeowners file doesnt seem up to date, please run hassfest |
Done. |
Huh, strange that it didnt get this change from the rebase |
Oh right, something went wrong in another PR. We have to do another rebase soon as it doesnt belong here. |
Agreed. Running hassfest again fixed it. 🤷🏻 |
Once #100772 has merged do a rebase and this is fine to be merged (given no other CI errors) |
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 @dknowles2 👍
Breaking change
Hydrawise integration no longer supports configuration by YAML. Existing YAML configurations will be imported automatically and can safely be removed.
Proposed change
Add config flow to Hydrawise.
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
.To help with the load of incoming pull requests: