2024-01-25 11:54:47 +00:00
|
|
|
"""Constants for the teslemetry tests."""
|
|
|
|
|
2024-01-28 20:04:44 +00:00
|
|
|
from homeassistant.components.teslemetry.const import DOMAIN, TeslemetryState
|
2024-01-25 11:54:47 +00:00
|
|
|
from homeassistant.const import CONF_ACCESS_TOKEN
|
|
|
|
|
2024-01-28 20:04:44 +00:00
|
|
|
from tests.common import load_json_object_fixture
|
|
|
|
|
2024-01-25 11:54:47 +00:00
|
|
|
CONFIG = {CONF_ACCESS_TOKEN: "1234567890"}
|
2024-01-28 20:04:44 +00:00
|
|
|
|
|
|
|
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)
|
2024-03-16 10:54:37 +00:00
|
|
|
VEHICLE_DATA_ALT = load_json_object_fixture("vehicle_data_alt.json", DOMAIN)
|
2024-03-04 17:42:56 +00:00
|
|
|
LIVE_STATUS = load_json_object_fixture("live_status.json", DOMAIN)
|
2024-01-28 20:04:44 +00:00
|
|
|
|
|
|
|
RESPONSE_OK = {"response": {}, "error": None}
|