mirror of
https://github.com/home-assistant/core.git
synced 2025-04-29 03:37:51 +00:00

* add account sensors * tidy up same issues as other sensors * add unit tests for sensors edit and remove comments assert state and remove HOP sensor types since they aren't being used * try and fix tests * add frozen true * Update tests/components/electric_kiwi/test_sensor.py Co-authored-by: G Johansson <goran.johansson@shiftit.se> * return proper native types Co-authored-by: G Johansson <goran.johansson@shiftit.se> * tidy up attr unique id Co-authored-by: G Johansson <goran.johansson@shiftit.se> * add entities once and use native values properly * Improve conftest Co-authored-by: G Johansson <goran.johansson@shiftit.se> * tidy tests/components/electric_kiwi/test_sensor.py Co-authored-by: G Johansson <goran.johansson@shiftit.se> * add assert to component_setup Co-authored-by: G Johansson <goran.johansson@shiftit.se> * add extra parameters to test Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Update tests/components/electric_kiwi/test_sensor.py Co-authored-by: G Johansson <goran.johansson@shiftit.se> * Update tests/components/electric_kiwi/test_sensor.py Co-authored-by: G Johansson <goran.johansson@shiftit.se> * change coordinator name Co-authored-by: G Johansson <goran.johansson@shiftit.se> * tidy up sensor translation names * Apply suggestions from code review --------- Co-authored-by: G Johansson <goran.johansson@shiftit.se>
15 lines
643 B
Python
15 lines
643 B
Python
"""Constants for the Electric Kiwi integration."""
|
|
|
|
NAME = "Electric Kiwi"
|
|
DOMAIN = "electric_kiwi"
|
|
ATTRIBUTION = "Data provided by the Juice Hacker API"
|
|
|
|
OAUTH2_AUTHORIZE = "https://welcome.electrickiwi.co.nz/oauth/authorize"
|
|
OAUTH2_TOKEN = "https://welcome.electrickiwi.co.nz/oauth/token"
|
|
API_BASE_URL = "https://api.electrickiwi.co.nz"
|
|
|
|
SCOPE_VALUES = "read_connection_detail read_billing_frequency read_account_running_balance read_consumption_summary read_consumption_averages read_hop_intervals_config read_hop_connection save_hop_connection read_session"
|
|
|
|
HOP_COORDINATOR = "hop_coordinator"
|
|
ACCOUNT_COORDINATOR = "account_coordinator"
|