-
-
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
Update SmartThings config flow to be entirely UI based #34163
Conversation
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 great! Just a few last comments.
|
||
result = await flow.async_step_user({"access_token": token}) | ||
result = await flow.async_step_pat() |
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.
This way of starting the flow in tests is legacy now. Now we always want to use the core interfaces, hass.config_entries.flow.async_init
to start a flow and hass.config_entries.flow.async_configure
to continue a flow. Doing that makes the tests more robust.
Breaking change
This change removes the need (and ability) to use the SmartThings Classic mobile application to install the Home Assistant SmartApp. Going forward, the SmartThings integration setup is completed entirely through the web. This only changes how the integration is setup and not any functionality once setup.
Proposed change
The SmartThings integration relies on the user using the SmartThings Classic app to complete the installation of the integration. The ST Classic App is on a path to retirement and this change removes that dependency. Instead, the user is prompted to authorize and install the integration into their SmartThings account through a web-based UI (external flow).
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:
New or updated dependencies have been added to
requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.No score or internal
🥈 Silver
🥇 Gold
🏆 Platinum