2024-01-25 11:54:47 +00:00
|
|
|
"""The Teslemetry integration models."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2024-01-29 10:00:18 +00:00
|
|
|
import asyncio
|
2024-01-25 11:54:47 +00:00
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
|
|
from tesla_fleet_api import VehicleSpecific
|
|
|
|
|
|
|
|
from .coordinator import TeslemetryVehicleDataCoordinator
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class TeslemetryVehicleData:
|
|
|
|
"""Data for a vehicle in the Teslemetry integration."""
|
|
|
|
|
|
|
|
api: VehicleSpecific
|
|
|
|
coordinator: TeslemetryVehicleDataCoordinator
|
|
|
|
vin: str
|
2024-01-29 10:00:18 +00:00
|
|
|
wakelock = asyncio.Lock()
|