* Adding Energy * Adding Energy * Work in progress * Add fixtures * Add product info * Add sensors * Add icons * Update metadata * Use SensorEntityDescription for Energy * Use ENERGY_STORAGE * Add tests * Fix coverage * Update wall connector precision and units * Change devices * Fix serial number * Add icons and VIN to wall connector * Fix serial number again * Update snapshots * Use timestamp for minutes to arrival * Cleanup snapshot * Improvements * Update fixture * Add "code" to translations * Add "code" to snapshot * Use async_add_entities once * Disable a bunch of sensors * Ruff * Improve fixture and test coverage * Regen Snapshots * Add init to coordinator
17 lines
672 B
Python
17 lines
672 B
Python
"""Constants for the teslemetry tests."""
|
|
|
|
from homeassistant.components.teslemetry.const import DOMAIN, TeslemetryState
|
|
from homeassistant.const import CONF_ACCESS_TOKEN
|
|
|
|
from tests.common import load_json_object_fixture
|
|
|
|
CONFIG = {CONF_ACCESS_TOKEN: "1234567890"}
|
|
|
|
WAKE_UP_ONLINE = {"response": {"state": TeslemetryState.ONLINE}, "error": None}
|
|
WAKE_UP_ASLEEP = {"response": {"state": TeslemetryState.ASLEEP}, "error": None}
|
|
|
|
PRODUCTS = load_json_object_fixture("products.json", DOMAIN)
|
|
VEHICLE_DATA = load_json_object_fixture("vehicle_data.json", DOMAIN)
|
|
LIVE_STATUS = load_json_object_fixture("live_status.json", DOMAIN)
|
|
|
|
RESPONSE_OK = {"response": {}, "error": None}
|