Fix SimpliSafe to work with new MFA (#38097)
* Fix SimpliSafe to work with new MFA * Code review (part 1) * Input needed from Martin * Code review * Code review * Restore YAML * Tests * Code review * Remove JSON patching in tests * Add reauth test * One more reauth test * Don't abuse the word "conf" * Update homeassistant/components/simplisafe/config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Test coverage Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
2dfd767b8c
commit
a5b7a2c228
11 files changed
+314
-116
No files matched your search
@@ -1,6 +1,17 @@
|
||||
{
|
||||
"config": {
|
||||
"step": {
|
||||
"mfa": {
|
||||
"title": "SimpliSafe Multi-Factor Authentication",
|
||||
"description": "Check your email for a link from SimpliSafe. After verifying the link, return here to complete the installation of the integration."
|
||||
},
|
||||
"reauth_confirm": {
|
||||
"title": "Re-link SimpliSafe Account",
|
||||
"description": "Your access token has expired or been revoked. Enter your password to re-link your account.",
|
||||
"data": {
|
||||
"password": "[%key:common::config_flow::data::password%]"
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"title": "Fill in your information.",
|
||||
"data": {
|
||||
@@ -12,10 +23,13 @@
|
||||
},
|
||||
"error": {
|
||||
"identifier_exists": "Account already registered",
|
||||
"invalid_credentials": "Invalid credentials"
|
||||
"invalid_credentials": "Invalid credentials",
|
||||
"still_awaiting_mfa": "Still awaiting MFA email click",
|
||||
"unknown": "[%key:common::config_flow::error::unknown%]"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "This SimpliSafe account is already in use."
|
||||
"already_configured": "This SimpliSafe account is already in use.",
|
||||
"reauth_successful": "SimpliSafe successfully reauthenticated."
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
@@ -28,4 +42,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user