Skip to content

Commit

Permalink
Add features and errors from Octavia (ICU) (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
WebSpider authored Nov 8, 2024
1 parent 0a19d95 commit 901dfcd
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions myskoda/models/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class CapabilityId(StrEnum):
MISUSE_PROTECTION = "MISUSE_PROTECTION"
NEWS = "NEWS"
ONLINE_SPEECH_GPS = "ONLINE_SPEECH_GPS"
OUTSIDE_TEMPERATURE = "OUTSIDE_TEMPERATURE"
PARKING_INFORMATION = "PARKING_INFORMATION"
PARKING_POSITION = "PARKING_POSITION"
PAY_TO_FUEL = "PAY_TO_FUEL"
Expand Down Expand Up @@ -102,6 +103,21 @@ class CapabilityStatus(StrEnum):
INSUFFICIENT_RIGHTS = "INSUFFICIENT_RIGHTS"


class ErrorType(StrEnum):
"""Known errors."""

MISSING_RENDER = "MISSING_RENDER"
UNAVAILABLE_SERVICE_PLATFORM_CAPABILITIES = "UNAVAILABLE_SERVICE_PLATFORM_CAPABILITIES"


@dataclass
class Error(DataClassORJSONMixin):
"""Main model for emitted errors."""

description: str
type: ErrorType


@dataclass
class Capability(DataClassORJSONMixin, DataClassYAMLMixin):
"""Shows the status of a capability. Empty status indicates no error."""
Expand Down Expand Up @@ -206,20 +222,6 @@ class ServicePartner(DataClassORJSONMixin):
id: str = field(metadata=field_options(alias="servicePartnerId"))


class ErrorType(StrEnum):
"""Known errors."""

MISSING_RENDER = "MISSING_RENDER"


@dataclass
class Error(DataClassORJSONMixin):
"""Main model for emitted errors."""

description: str
type: ErrorType


class ViewType(StrEnum):
UNMODIFIED_EXTERIOR_SIDE = "UNMODIFIED_EXTERIOR_SIDE"
UNMODIFIED_EXTERIOR_FRONT = "UNMODIFIED_EXTERIOR_FRONT"
Expand Down

0 comments on commit 901dfcd

Please sign in to comment.