Add SmartThings component and switch platform (#20148)
* Added SmartThings component and switch platform * Corrected comment typos. * Embedded switch platform. * Replaced custom view usage with webhook component. * Replaced urls with tokens in strings. * Fixed line length. * Use generated webhook id instead of static one. * Reuse core constant instead of defining again. * Optimizations in anticipation of future platforms. * Use async_generate_path instead of hard-coded path. * Fixed line length. * Updates per review feedback. * Updates per latest review feedback.
This commit is contained in:
1 parent
5a0c707a37
commit
69ec7980ad
18 files changed
+1793
No files matched your search
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"config": {
|
||||
"title": "SmartThings",
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Enter Personal Access Token",
|
||||
"description": "Please enter a SmartThings [Personal Access Token]({token_url}) that has been created per the [instructions]({component_url}).",
|
||||
"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."
|
||||
}
|
||||
},
|
||||
"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://`."
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user