* Setup barebones SmartHab config flow * Setup authentication flow * Make setup async, add config flow receivers * Add French translation * Fix async issues * Address review comments (thanks bdraco!) * Fix unloading entries * Migrate translations dir according to warning * Create list of components * Fix pylint false positive * Fix bad copy-pastes 🤭 * Add async support to SmartHab component * Address review comments (bdraco) * Fix pylint * Improve exception handling (bdraco) * Apply suggestions from code review (bdraco) Co-authored-by: J. Nick Koston <nick@koston.org> * Don't log exceptions manually, fix error * Reduce repeated lines in async_step_user (bdraco) * Remove useless else (pylint) * Remove broad exception handler * Create strings.json + remove fr i18n * Write tests for smarthab config flow * Test import flow * Fix import test * Update homeassistant/components/smarthab/config_flow.py Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: J. Nick Koston <nick@koston.org>
19 lines
802 B
JSON
19 lines
802 B
JSON
{
|
|
"config": {
|
|
"error": {
|
|
"service": "Error while trying to reach SmartHab. Service might be down. Check your connection.",
|
|
"wrong_login": "[%key:common::config_flow::error::invalid_auth%]",
|
|
"unknown_error": "[%key:common::config_flow::error::unknown%]"
|
|
},
|
|
"step": {
|
|
"user": {
|
|
"data": {
|
|
"password": "[%key:common::config_flow::data::password%]",
|
|
"email": "[%key:common::config_flow::data::email%]"
|
|
},
|
|
"description": "For technical reasons, be sure to use a secondary account specific to your Home Assistant setup. You can create one from the SmartHab application.",
|
|
"title": "Setup SmartHab"
|
|
}
|
|
}
|
|
}
|
|
} |