* Refactor Teslemetry * Add abstractmethod * Remove unused timestamp const * Ruff * Fix * Update snapshots * ruff * Ruff * ruff * Lint * Fix tests * Fix tests and diag * Refix snapshot * Ruff * Fix * Fix bad merge * has as property * Remove _handle_coordinator_update * Test and error changes
32 lines
567 B
Python
32 lines
567 B
Python
"""Constants used by Teslemetry integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from enum import StrEnum
|
|
import logging
|
|
|
|
DOMAIN = "teslemetry"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
MODELS = {
|
|
"S": "Model S",
|
|
"3": "Model 3",
|
|
"X": "Model X",
|
|
"Y": "Model Y",
|
|
}
|
|
|
|
|
|
class TeslemetryState(StrEnum):
|
|
"""Teslemetry Vehicle States."""
|
|
|
|
ONLINE = "online"
|
|
ASLEEP = "asleep"
|
|
OFFLINE = "offline"
|
|
|
|
|
|
class TeslemetryClimateSide(StrEnum):
|
|
"""Teslemetry Climate Keeper Modes."""
|
|
|
|
DRIVER = "driver_temp"
|
|
PASSENGER = "passenger_temp"
|