1 """Constants used by Tesla Fleet integration."""
3 from __future__
import annotations
5 from enum
import StrEnum
8 from tesla_fleet_api.const
import Scope
10 DOMAIN =
"tesla_fleet"
12 CONF_REFRESH_TOKEN =
"refresh_token"
14 LOGGER = logging.getLogger(__package__)
16 CLIENT_ID =
"71b813eb-4a2e-483a-b831-4dec5cb9bf0d"
17 AUTHORIZE_URL =
"https://auth.tesla.com/oauth2/v3/authorize"
18 TOKEN_URL =
"https://auth.tesla.com/oauth2/v3/token"
23 Scope.VEHICLE_DEVICE_DATA,
24 Scope.VEHICLE_LOCATION,
26 Scope.VEHICLE_CHARGING_CMDS,
27 Scope.ENERGY_DEVICE_DATA,
40 """Teslemetry Vehicle States."""
48 """Tesla Fleet Climate Keeper Modes."""
50 DRIVER =
"driver_temp"
51 PASSENGER =
"passenger_temp"