* Copy Paste Find Replace * Small progress * wip * more wip * Add SSE listen and close * More rework * Fix coordinator * Get working * Bump to 0.1.3 * Push to 0.1.4 * Lots of fixes * Remove stream * Add wakeup * Improve set temp * Be consistent with self * Increase polling until streaming * Work in progress * Move to single climate * bump to 0.2.0 * Update entity * Data handling * fixes * WIP tests * Tests * Delete other tests * Update comment * Fix init * Update homeassistant/components/teslemetry/entity.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Add Codeowner * Update coverage * requirements * Add failure for subscription required * Add VIN to model * Add wake * Add context manager * Rename to wake_up_if_asleep * Remove context from coverage * change lock to context Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Improving Logger * Add url to subscription error * Errors cannot markdown * Fix logger Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * rename logger * Fix error logging * Apply suggestions from code review --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
31 lines
586 B
Python
31 lines
586 B
Python
"""Constants used by Teslemetry integration."""
|
|
from __future__ import annotations
|
|
|
|
from enum import StrEnum
|
|
import logging
|
|
|
|
DOMAIN = "teslemetry"
|
|
|
|
LOGGER = logging.getLogger(__package__)
|
|
|
|
MODELS = {
|
|
"model3": "Model 3",
|
|
"modelx": "Model X",
|
|
"modely": "Model Y",
|
|
"models": "Model S",
|
|
}
|
|
|
|
|
|
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"
|