* Initial version * Baseline release * Refactor based on first PR feedback * Refactoring based on second PR feedback * Initial version * Baseline release * Refactor based on first PR feedback * Refactoring based on second PR feedback * Refactoring based on PR feedback * Refactoring based on PR feedback * Remove extra attribute soil type Soil type isn't really a sensor, but more like a configuration entity. Move soil type to a different PR to keep this PR simpler. * Refactor SensoterraSensor to a named tuple * Implement feedback on PR * Remove .coveragerc * Add async_set_unique_id to config flow * Small fix based on feedback * Add test form unique_id * Fix * Fix --------- Co-authored-by: Joostlek <joostlek@outlook.com>
38 lines
1.1 KiB
JSON
38 lines
1.1 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"description": "Enter credentials to obtain a token",
|
|
"data": {
|
|
"email": "[%key:common::config_flow::data::email%]",
|
|
"password": "[%key:common::config_flow::data::password%]"
|
|
}
|
|
},
|
|
"reconfigure": {
|
|
"description": "[%key:component::sensoterra::config::step::user::description%]",
|
|
"data": {
|
|
"email": "[%key:common::config_flow::data::email%]",
|
|
"password": "[%key:common::config_flow::data::password%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"cannot_connect": "[%key:common::config_flow::error::cannot_connect%]",
|
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
|
"invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]"
|
|
}
|
|
},
|
|
"entity": {
|
|
"sensor": {
|
|
"soil_moisture_at_cm": {
|
|
"name": "Soil moisture @ {depth} cm"
|
|
},
|
|
"si_at_cm": {
|
|
"name": "SI @ {depth} cm"
|
|
}
|
|
}
|
|
}
|
|
}
|