Update SmartThings config flow to be entirely UI based (#34163)
* bump pysmartthings 0.7.1 * Update config flow to use UI * Code review comments and fix for resetting oauth client * Replace html with markdown
This commit is contained in:
1 parent
bf33169627
commit
075030f15a
10 files changed
+543
-382
No files matched your search
@@ -3,26 +3,37 @@
|
||||
"title": "SmartThings",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Confirm Callback URL",
|
||||
"description": "SmartThings will be configured to send push updates to Home Assistant at:\n> {webhook_url}\n\nIf this is not correct, please update your configuration, restart Home Assistant, and try again."
|
||||
},
|
||||
"pat": {
|
||||
"title": "Enter Personal Access Token",
|
||||
"description": "Please enter a SmartThings [Personal Access Token]({token_url}) that has been created per the [instructions]({component_url}).",
|
||||
"description": "Please enter a SmartThings [Personal Access Token]({token_url}) that has been created per the [instructions]({component_url}). This will be used to create the Home Assistant integration within your SmartThings account.",
|
||||
"data": {
|
||||
"access_token": "Access Token"
|
||||
}
|
||||
},
|
||||
"wait_install": {
|
||||
"title": "Install SmartApp",
|
||||
"description": "Please install the Home Assistant SmartApp in at least one location and click submit."
|
||||
"select_location": {
|
||||
"title": "Select Location",
|
||||
"description": "Please select the SmartThings Location you wish to add to Home Assistant. We will then open a new window and ask you to login and authorize installation of the Home Assistant integration into the selected location.",
|
||||
"data": {
|
||||
"location_id": "Location"
|
||||
}
|
||||
},
|
||||
"authorize": {
|
||||
"title": "Authorize Home Assistant"
|
||||
}
|
||||
},
|
||||
"abort": {
|
||||
"invalid_webhook_url": "Home Assistant is not configured correctly to receive updates from SmartThings. The webhook URL is invalid:\n> {webhook_url}\n\nPlease update your configuration per the [instructions]({component_url}), restart Home Assistant, and try again.",
|
||||
"no_available_locations": "There are no available SmartThings Locations to setup in Home Assistant."
|
||||
},
|
||||
"error": {
|
||||
"token_invalid_format": "The token must be in the UID/GUID format",
|
||||
"token_unauthorized": "The token is invalid or no longer authorized.",
|
||||
"token_forbidden": "The token does not have the required OAuth scopes.",
|
||||
"token_already_setup": "The token has already been setup.",
|
||||
"app_setup_error": "Unable to setup the SmartApp. Please try again.",
|
||||
"app_not_installed": "Please ensure you have installed and authorized the Home Assistant SmartApp and try again.",
|
||||
"base_url_not_https": "The `base_url` for the `http` component must be configured and start with `https://`.",
|
||||
"webhook_error": "SmartThings could not validate the endpoint configured in `base_url`. Please review the component requirements."
|
||||
"webhook_error": "SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user