1
mirror of https://github.com/home-assistant/core synced 2024-08-02 23:40:32 +02:00
ha-core/homeassistant/components/totalconnect/strings.json
Austin Mroczek 49c4886f40
Fix totalconnect config flow (#59461)
* update total_connect_client to 2021.10

* update for total_connect_client changes

* remove unused return value

* bump total_connect_client to 2021.11.1

* bump total_connect_client to 2021.11.2

* Move to public ResultCode

* load locations to prevent 'unknown error occurred'

* add test for zero locations

* put error message in strings

* test for abort and message from strings

* handle AuthenticationError in step_user

* update tests with exceptions

* update reauth with exceptions

* use try except else per suggestion

* only create schema if necessary

* catch auth error in async_setup_entry

* one more fix in test_init
2021-11-15 11:32:35 -06:00

34 lines
1.1 KiB
JSON

{
"config": {
"step": {
"user": {
"title": "Total Connect",
"data": {
"username": "[%key:common::config_flow::data::username%]",
"password": "[%key:common::config_flow::data::password%]"
}
},
"locations": {
"title": "Location Usercodes",
"description": "Enter the usercode for this user at location {location_id}",
"data": {
"usercode": "Usercode"
}
},
"reauth_confirm": {
"title": "[%key:common::config_flow::title::reauth%]",
"description": "Total Connect needs to re-authenticate your account"
}
},
"error": {
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
"usercode": "Usercode not valid for this user at this location"
},
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
"no_locations": "No locations are available for this user, check TotalConnect settings"
}
}
}