Skip to content

Commit

Permalink
Add capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
Prior99 committed Sep 13, 2024
1 parent 6254938 commit f51d090
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions myskoda/models/info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,75 @@
from datetime import date
from enum import Enum
from pydantic import BaseModel, Field
from typing import Any


class CapabilityId(str, Enum):
AIR_CONDITIONING = "AIR_CONDITIONING"
AIR_CONDITIONING_SAVE_AND_ACTIVATE = "AIR_CONDITIONING_SAVE_AND_ACTIVATE"
AIR_CONDITIONING_SMART_SETTINGS = "AIR_CONDITIONING_SMART_SETTINGS"
AIR_CONDITIONING_TIMERS = "AIR_CONDITIONING_TIMERS"
AUTOMATION = "AUTOMATION"
BATTERY_CHARGING_CARE = "BATTERY_CHARGING_CARE"
BATTERY_SUPPORT = "BATTERY_SUPPORT"
CARE_AND_INSURANCE = "CARE_AND_INSURANCE"
CHARGE_MODE_SELECTION = "CHARGE_MODE_SELECTION"
CHARGING = "CHARGING"
CHARGING_MEB = "CHARGING_MEB"
CHARGING_PROFILES = "CHARGING_PROFILES"
CHARGING_STATIONS = "CHARGING_STATIONS"
CUBIC = "CUBIC"
DEALER_APPOINTMENT = "DEALER_APPOINTMENT"
DESTINATIONS = "DESTINATIONS"
DESTINATION_IMPORT = "DESTINATION_IMPORT"
DIGICERT = "DIGICERT"
EMERGENCY_CALLING = "EMERGENCY_CALLING"
EV_ROUTE_PLANNING = "EV_ROUTE_PLANNING"
EXTENDED_CHARGING_SETTINGS = "EXTENDED_CHARGING_SETTINGS"
FUEL_STATUS = "FUEL_STATUS"
GEO_FENCE = "GEO_FENCE"
GUEST_USER_MANAGEMENT = "GUEST_USER_MANAGEMENT"
HONK_AND_FLASH = "HONK_AND_FLASH"
ICE_VEHICLE_RTS = "ICE_VEHICLE_RTS"
MAP_UPDATE = "MAP_UPDATE"
MEASUREMENTS = "MEASUREMENTS"
MISUSE_PROTECTION = "MISUSE_PROTECTION"
NEWS = "NEWS"
ONLINE_SPEECH_GPS = "ONLINE_SPEECH_GPS"
PARKING_INFORMATION = "PARKING_INFORMATION"
PARKING_POSITION = "PARKING_POSITION"
PAY_TO_FUEL = "PAY_TO_FUEL"
PAY_TO_PARK = "PAY_TO_PARK"
PLUG_AND_CHARGE = "PLUG_AND_CHARGE"
POI_SEARCH = "POI_SEARCH"
POWERPASS_TARIFFS = "POWERPASS_TARIFFS"
ROADSIDE_ASSISTANT = "ROADSIDE_ASSISTANT"
ROUTE_IMPORT = "ROUTE_IMPORT"
ROUTE_PLANNING_5_CHARGERS = "ROUTE_PLANNING_5_CHARGERS"
ROUTING = "ROUTING"
SERVICE_PARTNER = "SERVICE_PARTNER"
SPEED_ALERT = "SPEED_ALERT"
STATE = "STATE"
SUBSCRIPTIONS = "SUBSCRIPTIONS"
TRAFFIC_INFORMATION = "TRAFFIC_INFORMATION"
TRIP_STATISTICS = "TRIP_STATISTICS"
VEHICLE_HEALTH_INSPECTION = "VEHICLE_HEALTH_INSPECTION"
VEHICLE_HEALTH_WARNINGS = "VEHICLE_HEALTH_WARNINGS"
VEHICLE_HEALTH_WARNINGS_WITH_WAKE_UP = "VEHICLE_HEALTH_WARNINGS_WITH_WAKE_UP"
VEHICLE_SERVICES_BACKUPS = "VEHICLE_SERVICES_BACKUPS"
VEHICLE_WAKE_UP = "VEHICLE_WAKE_UP"
VEHICLE_WAKE_UP_TRIGGER = "VEHICLE_WAKE_UP_TRIGGER"
WARNING_LIGHTS = "WARNING_LIGHTS"
WINDOW_HEATING = "WINDOW_HEATING"


class Capability(BaseModel):
id: CapabilityId
statuses: list[Any]


class Capabilities(BaseModel):
capabilities: list[Capability]


class Battery(BaseModel):
Expand Down Expand Up @@ -53,3 +122,4 @@ class Info(BaseModel):
device_platform: str = Field(None, alias="devicePlatform")
service_partner: ServicePartner = Field(None, alias="servicePartner")
workshop_mode_enabled: bool = Field(None, alias="workshopModeEnabled")
capabilities: Capabilities

0 comments on commit f51d090

Please sign in to comment.