* 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>
11 lines
282 B
Python
11 lines
282 B
Python
"""Constants for the Flick Electric integration."""
|
|
|
|
DOMAIN = "flick_electric"
|
|
|
|
CONF_TOKEN_EXPIRES_IN = "expires_in"
|
|
CONF_TOKEN_EXPIRY = "expires"
|
|
|
|
ATTR_START_AT = "start_at"
|
|
ATTR_END_AT = "end_at"
|
|
|
|
ATTR_COMPONENTS = ["retailer", "ea", "metering", "generation", "admin", "network"]
|