carconnectivity-connector-skoda 0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of carconnectivity-connector-skoda might be problematic. Click here for more details.

@@ -0,0 +1,53 @@
1
+ """Module for Skoda vehicle capability class."""
2
+ from __future__ import annotations
3
+ from typing import TYPE_CHECKING
4
+
5
+ from enum import Enum
6
+
7
+ from carconnectivity.objects import GenericObject
8
+ from carconnectivity.attributes import EnumAttribute, StringAttribute
9
+
10
+ if TYPE_CHECKING:
11
+ from typing import Optional
12
+
13
+
14
+ class Error(GenericObject):
15
+ """
16
+ Represents an error object in the car connectivity context.
17
+ """
18
+
19
+ def __init__(self, object_id, parent: Optional[GenericObject] = None) -> None:
20
+ super().__init__(object_id, parent=parent)
21
+ self.type: EnumAttribute = EnumAttribute("type", parent=self)
22
+ self.description: StringAttribute = StringAttribute("description", parent=self)
23
+
24
+ class ChargingError(Enum):
25
+ """
26
+ Enum representing various charging errors for Skoda car connectivity.
27
+
28
+ Attributes:
29
+ STATUS_OF_CHARGING_NOT_AVAILABLE: Indicates that the status of charging is not available.
30
+ STATUS_OF_CONNECTION_NOT_AVAILABLE: Indicates that the status of connection is not available.
31
+ CARE_MODE_IS_NOT_AVAILABLE: Indicates that the care mode is not available.
32
+ AUTO_UNLOCK_IS_NOT_AVAILABLE: Indicates that the auto unlock feature is not available.
33
+ MAX_CHARGE_CURRENT_IS_NOT_AVAILABLE: Indicates that the maximum charge current setting is not available.
34
+ CHARGE_LIMIT_IS_NOT_AVAILABLE: Indicates that the charge limit setting is not available.
35
+ """
36
+ STATUS_OF_CHARGING_NOT_AVAILABLE = 'STATUS_OF_CHARGING_NOT_AVAILABLE'
37
+ STATUS_OF_CONNECTION_NOT_AVAILABLE = 'STATUS_OF_CONNECTION_NOT_AVAILABLE'
38
+ CARE_MODE_IS_NOT_AVAILABLE = 'CARE_MODE_IS_NOT_AVAILABLE'
39
+ AUTO_UNLOCK_IS_NOT_AVAILABLE = 'AUTO_UNLOCK_IS_NOT_AVAILABLE'
40
+ MAX_CHARGE_CURRENT_IS_NOT_AVAILABLE = 'MAX_CHARGE_CURRENT_IS_NOT_AVAILABLE'
41
+ CHARGE_LIMIT_IS_NOT_AVAILABLE = 'CHARGE_LIMIT_IS_NOT_AVAILABLE'
42
+ UNKNOWN = 'UNKNOWN'
43
+
44
+ class ClimatizationError(Enum):
45
+ """
46
+ ClimatizationError is an enumeration for representing various errors
47
+ related to the climatization system in a Skoda car.
48
+
49
+ This enum can be extended to include specific error codes and messages
50
+ that correspond to different climatization issues.
51
+ """
52
+ UNAVAILABLE_CHARGING_INFORMATION = 'UNAVAILABLE_CHARGING_INFORMATION'
53
+ UNKNOWN = 'UNKNOWN'