mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 02:03:27 +01:00
Make add entry translatable (#159901)
This commit is contained in:
committed by
GitHub
parent
6ee58b96ca
commit
3fe91751f5
@@ -16,6 +16,9 @@
|
||||
"create_entry": {
|
||||
"default": "Successfully authenticated with Spotify."
|
||||
},
|
||||
"initiate_flow": {
|
||||
"user": "[%key:common::config_flow::initiate_flow::account%]"
|
||||
},
|
||||
"step": {
|
||||
"pick_implementation": {
|
||||
"data": {
|
||||
|
||||
@@ -85,6 +85,9 @@
|
||||
"timeout_connect": "Timeout establishing connection",
|
||||
"unknown": "Unexpected error"
|
||||
},
|
||||
"initiate_flow": {
|
||||
"account": "Add account"
|
||||
},
|
||||
"title": {
|
||||
"oauth2_pick_implementation": "Pick authentication method",
|
||||
"reauth": "Authentication expired for {name}",
|
||||
|
||||
@@ -214,6 +214,10 @@ def gen_data_entry_schema(
|
||||
vol.Required("user"): translation_value_validator,
|
||||
str: translation_value_validator,
|
||||
}
|
||||
else:
|
||||
schema[vol.Optional("initiate_flow")] = {
|
||||
vol.Required("user"): translation_value_validator,
|
||||
}
|
||||
if flow_title == REQUIRED:
|
||||
schema[vol.Required("title")] = translation_value_validator
|
||||
elif flow_title == REMOVED:
|
||||
|
||||
Reference in New Issue
Block a user