generated from ludeeus/integration_blueprint
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Daanoz/feature/exception_detail_in_config…
…_flow feat: improve error message on setup issues
- Loading branch information
Showing
3 changed files
with
84 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,61 @@ | ||
{ | ||
"config": { | ||
"step": { | ||
"pick_implementation": { | ||
"title": "[%key:common::config_flow::title::oauth2_pick_implementation%]" | ||
}, | ||
"reauth_confirm": { | ||
"title": "[%key:common::config_flow::title::reauth%]", | ||
"description": "The Google Photos integration needs to re-authenticate your account" | ||
}, | ||
"auth": { | ||
"title": "Link Google Account" | ||
} | ||
"config": { | ||
"step": { | ||
"pick_implementation": { | ||
"title": "[%key:common::config_flow::title::oauth2_pick_implementation%]" | ||
}, | ||
"abort": { | ||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]", | ||
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", | ||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", | ||
"timeout_connect": "[%key:common::config_flow::error::timeout_connect%]", | ||
"oauth_error": "[%key:common::config_flow::abort::oauth2_error%]", | ||
"missing_configuration": "[%key:common::config_flow::abort::oauth2_missing_configuration%]", | ||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]", | ||
"invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]", | ||
"unknown": "[%key:common::config_flow::error::unknown%]" | ||
"reauth_confirm": { | ||
"title": "[%key:common::config_flow::title::reauth%]", | ||
"description": "The Google Photos integration needs to re-authenticate your account" | ||
}, | ||
"create_entry": { | ||
"default": "[%key:common::config_flow::create_entry::authenticated%]" | ||
"auth": { | ||
"title": "Link Google Account" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"menu_options": { | ||
"albumselect": "Select album", | ||
"settings": "Settings" | ||
}, | ||
"title": "Adjust Google Photos options" | ||
"abort": { | ||
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]", | ||
"already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", | ||
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", | ||
"timeout_connect": "[%key:common::config_flow::error::timeout_connect%]", | ||
"oauth_error": "[%key:common::config_flow::abort::oauth2_error%]", | ||
"missing_configuration": "[%key:common::config_flow::abort::oauth2_missing_configuration%]", | ||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]", | ||
"invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]", | ||
"unknown": "[%key:common::config_flow::error::unknown%]", | ||
"access_error": "[%key:common::config_flow::error::access_error%]" | ||
}, | ||
"create_entry": { | ||
"default": "[%key:common::config_flow::create_entry::authenticated%]" | ||
} | ||
}, | ||
"options": { | ||
"step": { | ||
"init": { | ||
"menu_options": { | ||
"albumselect": "Select album", | ||
"settings": "Settings" | ||
}, | ||
"albumselect": { | ||
"data": { | ||
"album_id": "Album" | ||
}, | ||
"title": "Select album to add", | ||
"description": "Album will be added as a seperate entity after a short period of time." | ||
"title": "Adjust Google Photos options" | ||
}, | ||
"albumselect": { | ||
"data": { | ||
"album_id": "Album" | ||
}, | ||
"title": "Select album to add", | ||
"description": "Album will be added as a seperate entity after a short period of time." | ||
}, | ||
"settings": { | ||
"data": { | ||
"mode": "Selection mode.", | ||
"interval": "Refresh interval", | ||
"attribute_metadata": "Write metadata to attributes" | ||
}, | ||
"settings": { | ||
"data": { | ||
"mode": "Selection mode.", | ||
"interval": "Refresh interval", | ||
"attribute_metadata": "Write metadata to attributes" | ||
}, | ||
"description": "Choose how and when the next photo is loaded. Warning: a high refresh rate for a lot of albums might lead into google api limits.", | ||
"title": "Adjust Google Photos options." | ||
} | ||
"description": "Choose how and when the next photo is loaded. Warning: a high refresh rate for a lot of albums might lead into google api limits.", | ||
"title": "Adjust Google Photos options." | ||
} | ||
}, | ||
"application_credentials": { | ||
"description": "Follow the [instructions]({more_info_url}) for [OAuth consent screen]({oauth_consent_url}) to give Home Assistant access to your Google Photos. You also need to create Application Credentials linked to your account:\n1. Go to [Credentials]({oauth_creds_url}) and click **Create Credentials**.\n1. From the drop-down list select **OAuth client ID**.\n1. Select **Web application** for the Application Type.\n\n" | ||
} | ||
} | ||
}, | ||
"application_credentials": { | ||
"description": "Follow the [instructions]({more_info_url}) for [OAuth consent screen]({oauth_consent_url}) to give Home Assistant access to your Google Photos. You also need to create Application Credentials linked to your account:\n1. Go to [Credentials]({oauth_creds_url}) and click **Create Credentials**.\n1. From the drop-down list select **OAuth client ID**.\n1. Select **Web application** for the Application Type.\n\n" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters