* iCloud: setup ConfigFlow and prepare for more platforms - add config flow + tests - fix existing services - add play_sound & display_message services - document services - can use devices with the same name - prepare to add sensor platform * Review : not copy account conf * Review: Safer test patch * Review: remove reset_account * Review: Use executor_job while IO * Review: Use executor_job while IO 2 * Review: use hass.helpers.storage.Store() * Review: no IO in tests * Remove reset from services.yaml * Review: remove authenticate.return_value = Mock() * Review: do not initialize the api with the mocked service * isort * Review: @MartinHjelmare Test config flow with all steps * Review: Fix failed tests names * Codevov: Add one missing test
39 lines
1.4 KiB
JSON
39 lines
1.4 KiB
JSON
{
|
|
"config": {
|
|
"title": "Apple iCloud",
|
|
"step": {
|
|
"user": {
|
|
"title": "iCloud credentials",
|
|
"description": "Enter your credentials",
|
|
"data": {
|
|
"username": "Email",
|
|
"password": "Password"
|
|
}
|
|
},
|
|
"trusted_device": {
|
|
"title": "iCloud trusted device",
|
|
"description": "Select your trusted device",
|
|
"data": {
|
|
"trusted_device": "Trusted device"
|
|
}
|
|
},
|
|
"verification_code": {
|
|
"title": "iCloud verification code",
|
|
"description": "Please enter the verification code you just received from iCloud",
|
|
"data": {
|
|
"verification_code": "Verification code"
|
|
}
|
|
}
|
|
},
|
|
"error":{
|
|
"username_exists": "Account already configured",
|
|
"login": "Login error: please check your email & password",
|
|
"send_verification_code": "Failed to send verification code",
|
|
"validate_verification_code": "Failed to verify your verification code, choose a trust device and start the verification again",
|
|
},
|
|
"abort":{
|
|
"username_exists": "Account already configured"
|
|
}
|
|
}
|
|
}
|