Add Flick Electric NZ integration (#30696)
* Add integration for Flick Electric NZ * Start adding Config Flow and external API * Second Wave of Config Flow and API implementation * Fix test (errors is None instead of blank array?) * Don't update sensor if price is still valid * Add input validation * Fix linting for DOMAIN Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Remove platform schema (config is by entries only) * Don't catch AbortFlow exception Co-Authored-By: Martin Hjelmare <marhje52@gmail.com> * Update test * Re-arrange try-catch in config flow * Fix linting in sensor.py * Staticly define list of components * Fix test exceptions * Fix _validate_input not being awaited * Fix tests * Fix pylint logger * Rename test and remove print debug * Add test for duplicate entry * Don't format string in log function * Add tests __init__ file * Remove duplicate result assignment * Add test for generic exception handling * Move translations folder * Simplify testing * Fix strings/translation * Move to "flick_electric" as domain Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
1 parent
0cf1ca7736
commit
e2b622fb78
14 files changed
+464
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"title": "Flick Electric",
|
||||
"config": {
|
||||
"step": {
|
||||
"user": {
|
||||
"title": "Flick Login Credentials",
|
||||
"data": {
|
||||
"username": "Username",
|
||||
"password": "Password",
|
||||
"client_id": "Client ID (Optional)",
|
||||
"client_secret": "Client Secret (Optional)"
|
||||
}
|
||||
}
|
||||
},
|
||||
"error": {
|
||||
"cannot_connect": "Failed to connect, please try again",
|
||||
"invalid_auth": "Invalid authentication",
|
||||
"unknown": "Unexpected error"
|
||||
},
|
||||
"abort": {
|
||||
"already_configured": "That account is already configured"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user