mirror of
https://github.com/elisspace/core.git
synced 2026-09-26 20:47:02 +00:00
* Adjust config-flow type hints in awair * Improve typing of dict arguments * Use mapping for async_step_reauth * Add async_step_reauth_confirm * Don't try old token * Adjust translations * Adjust tests * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * Update tests/components/awair/test_config_flow.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
30 lines
1.1 KiB
JSON
30 lines
1.1 KiB
JSON
{
|
|
"config": {
|
|
"step": {
|
|
"user": {
|
|
"description": "You must register for an Awair developer access token at: https://developer.getawair.com/onboard/login",
|
|
"data": {
|
|
"access_token": "[%key:common::config_flow::data::access_token%]",
|
|
"email": "[%key:common::config_flow::data::email%]"
|
|
}
|
|
},
|
|
"reauth_confirm": {
|
|
"description": "Please re-enter your Awair developer access token.",
|
|
"data": {
|
|
"access_token": "[%key:common::config_flow::data::access_token%]",
|
|
"email": "[%key:common::config_flow::data::email%]"
|
|
}
|
|
}
|
|
},
|
|
"error": {
|
|
"invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]",
|
|
"unknown": "[%key:common::config_flow::error::unknown%]"
|
|
},
|
|
"abort": {
|
|
"already_configured": "[%key:common::config_flow::abort::already_configured_account%]",
|
|
"no_devices_found": "[%key:common::config_flow::abort::no_devices_found%]",
|
|
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]"
|
|
}
|
|
}
|
|
}
|