hass-core/homeassistant/components/teslemetry/const.py
Brett Adams 1a4e416bf4
Refactor Teslemetry integration (#112480)
* 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
2024-05-10 10:52:33 +02:00

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"