TotalConnect improved config flow and test before setup (#133852)

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Austin Mroczek 2025-01-08 01:37:04 -10:00 committed by GitHub
parent e052ab27f2
commit 8be01ac9d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 23 additions and 4 deletions

View File

@ -1,11 +1,11 @@
rules:
# Bronze
config-flow: todo
config-flow: done
test-before-configure: done
unique-config-entry: done
config-flow-test-coverage: todo
runtime-data: done
test-before-setup: todo
test-before-setup: done
appropriate-polling: done
entity-unique-id: done
has-entity-name: done

View File

@ -2,21 +2,36 @@
"config": {
"step": {
"user": {
"title": "Total Connect 2.0 Account Credentials",
"description": "It is highly recommended to use a 'standard' Total Connect user account with Home Assistant. The account should not have full administrative privileges.",
"data": {
"username": "[%key:common::config_flow::data::username%]",
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"username": "The Total Connect username",
"password": "The Total Connect password"
}
},
"locations": {
"title": "Location Usercodes",
"description": "Enter the usercode for this user at location {location_id}",
"data": {
"usercode": "Usercode"
"usercodes": "Usercode"
},
"data_description": {
"usercodes": "The usercode is usually a 4 digit number"
}
},
"reauth_confirm": {
"title": "[%key:common::config_flow::title::reauth%]",
"description": "Total Connect needs to re-authenticate your account"
"description": "Total Connect needs to re-authenticate your account",
"data": {
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"password": "[%key:component::totalconnect::config::step::user::data_description::password%]"
}
}
},
"error": {
@ -36,6 +51,10 @@
"data": {
"auto_bypass_low_battery": "Auto bypass low battery",
"code_required": "Require user to enter code for alarm actions"
},
"data_description": {
"auto_bypass_low_battery": "If enabled, Total Connect zones will immediately be bypassed when they report low battery. This option helps because zones tend to report low battery in the middle of the night. The downside of this option is that when the alarm system is armed, the bypassed zone will not be monitored.",
"code_required": "If enabled, you must enter the user code to arm or disarm the alarm"
}
}
}