-
-
Notifications
You must be signed in to change notification settings - Fork 37.4k
Add config flow base strings #34523
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 base strings #34523
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,17 @@ | ||
| { | ||
| "config": { | ||
| "step": { | ||
| "pick_implementation": { "title": "Pick Authentication Method" } | ||
| "pick_implementation": { | ||
| "title": "[%key:common::config_flow::title::oauth2_pick_implementation%]" | ||
| } | ||
| }, | ||
| "abort": { | ||
| "already_setup": "You can only configure one Netatmo account.", | ||
| "authorize_url_timeout": "Timeout generating authorize url.", | ||
| "missing_configuration": "The Netatmo component is not configured. Please follow the documentation." | ||
| "already_setup": "[%key:common::config_flow::abort::single_instance_allowed%]", | ||
| "authorize_url_timeout": "[%key:common::config_flow::abort::oauth2_authorize_url_timeout%]", | ||
| "missing_configuration": "[%key:common::config_flow::abort::oauth2_missing_configuration%]" | ||
| }, | ||
| "create_entry": { "default": "Successfully authenticated with Netatmo." } | ||
| "create_entry": { | ||
| "default": "[%key:common::config_flow::create_entry::authenticated%]" | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -327,12 +327,25 @@ def find_frontend_states(): | |
| def run(): | ||
| """Migrate translations.""" | ||
| # Import new common keys | ||
| migrate_project_keys_translations( | ||
| rename_keys( | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's happening here is that we one-time rename these keys to the common keys. Then when strings are uploaded after merge, the old names are created again, but their new value is set up as a reference to the new name.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So this script needs to run before merge.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Merge of this PR?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I will do that once CI passses. |
||
| CORE_PROJECT_ID, | ||
| FRONTEND_PROJECT_ID, | ||
| { | ||
| "common::state::off": "state::default::off", | ||
| "common::state::on": "state::default::on", | ||
| "component::netatmo::config::step::pick_implementation::title": "common::config_flow::title::oauth2_pick_implementation", | ||
| "component::doorbird::config::step::user::data::username": "common::config_flow::data::username", | ||
| "component::doorbird::config::step::user::data::password": "common::config_flow::data::password", | ||
| "component::adguard::config::step::user::data::host": "common::config_flow::data::host", | ||
| "component::adguard::config::step::user::data::port": "common::config_flow::data::port", | ||
| "component::zha::config::step::user::data::usb_path": "common::config_flow::data::usb_path", | ||
| "component::smartthings::config::step::pat::data::access_token": "common::config_flow::data::access_token", | ||
| "component::airvisual::config::step::geography::data::api_key": "common::config_flow::data::api_key", | ||
| "component::doorbird::config::error::invalid_auth": "common::config_flow::error::invalid_auth", | ||
| "component::airvisual::config::error::invalid_api_key": "common::config_flow::error::invalid_api_key", | ||
| "component::tibber::config::error::invalid_access_token": "common::config_flow::error::invalid_access_token", | ||
| "component::doorbird::config::error::unknown": "common::config_flow::error::unknown", | ||
| "component::life360::config::abort::user_already_configured": "common::config_flow::abort::already_configured_account", | ||
| "component::xiaomi_miio::config::abort::already_configured": "common::config_flow::abort::already_configured_device", | ||
| "component::netatmo::config::abort::missing_configuration": "common::config_flow::abort::oauth2_missing_configuration", | ||
| "component::netatmo::config::abort::authorize_url_timeout": "common::config_flow::abort::oauth2_authorize_url_timeout", | ||
| }, | ||
| ) | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.