Skip to content

Commit

Permalink
Update strings
Browse files Browse the repository at this point in the history
  • Loading branch information
briancmpbll committed Apr 7, 2022
1 parent d40d265 commit ee23a05
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 51 deletions.
20 changes: 4 additions & 16 deletions custom_components/enphase_envoy_custom/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,13 @@
"flow_title": "{serial} ({host})",
"step": {
"user": {
"description": "For newer models, enter username `envoy` without a password. For older models, enter username `installer` without a password. For all other models, enter a valid username and password.",
"description": "For newer models, enter username `envoy` without a password. For older models, enter username `installer` without a password. For all other models, enter a valid username and password. For firmware D7.0.0 and above check `use enlighten`",
"data": {
"host": "[%key:common::config_flow::data::host%]",
"username": "[%key:common::config_flow::data::username%]",
"password": "[%key:common::config_flow::data::password%]"
}
},
"enlighten": {
"description": "The firmware running on your Envoy requires authentication to Enphase Enlighten, to retrieve a token to locally access your Envoy. Please enter the `Email` and `Password` for your Enlighten account. Selecting `Commissioned` will require your `SiteID` and `Serial Number` from Enlighten. Selecting `Uncommissioned` will not require any additional information after this step.",
"data": {
"email": "[%key:common::config_flow::data::email%]",
"enlighten_password": "Password"
}
},
"commissioned": {
"description": "Please enter your `SiteID` and `Serial Number` from your Enphase Enlighten account.",
"data": {
"id": "SiteID",
"serial": "Serial Number"
"password": "[%key:common::config_flow::data::password%]",
"serial": "envoy serial number",
"use_enlighten": "Use Enlighten"
}
}
},
Expand Down
58 changes: 23 additions & 35 deletions custom_components/enphase_envoy_custom/translations/en.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,26 @@
{
"config": {
"abort": {
"already_configured": "Device is already configured",
"reauth_successful": "Re-authentication was successful"
"config": {
"abort": {
"already_configured": "Device is already configured",
"reauth_successful": "Re-authentication was successful"
},
"error": {
"cannot_connect": "Failed to connect",
"invalid_auth": "Invalid authentication",
"unknown": "Unexpected error"
},
"flow_title": "{serial} ({host})",
"step": {
"user": {
"data": {
"host": "Host",
"password": "Password",
"username": "Username",
"serial": "envoy serial number",
"use_enlighten": "Use Enlighten"
},
"error": {
"cannot_connect": "Failed to connect",
"invalid_auth": "Invalid authentication",
"unknown": "Unexpected error"
},
"flow_title": "{serial} ({host})",
"step": {
"commissioned": {
"data": {
"id": "SiteID",
"serial": "Serial Number"
},
"description": "Please enter your `SiteID` and `Serial Number` from your Enphase Enlighten account."
},
"enlighten": {
"data": {
"email": "Email",
"enlighten_password": "Password"
},
"description": "The firmware running on your Envoy requires authentication to Enphase Enlighten, to retrieve a token to locally access your Envoy. Please enter the `Email` and `Password` for your Enlighten account. Selecting `Commissioned` will require your `SiteID` and `Serial Number` from Enlighten. Selecting `Uncommissioned` will not require any additional information after this step."
},
"user": {
"data": {
"host": "Host",
"password": "Password",
"username": "Username"
},
"description": "For newer models, enter username `envoy` without a password. For older models, enter username `installer` without a password. For all other models, enter a valid username and password."
}
}
"description": "For newer models, enter username `envoy` without a password. For older models, enter username `installer` without a password. For all other models, enter a valid username and password. For firmware D7.0.0 and above check `use enlighten`"
}
}
}
}
}

0 comments on commit ee23a05

Please sign in to comment.