Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions ocpp/v201/datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,27 +358,6 @@
charging_schedule_period: List[ChargingSchedulePeriodType]


@dataclass
class CostType:
"""
CostType is used by: ConsumptionCostType
"""

cost_kind: enums.CostKindEnumType
amount: int
amount_multiplier: Optional[int] = None


@dataclass
class ConsumptionCostType:
"""
ConsumptionCostType is used by: SalesTariffEntryType
"""

start_value: float
cost: List[CostType]


@dataclass
class EventDataType:
"""
Expand Down Expand Up @@ -555,7 +534,7 @@
UnitOfMeasureType is used by: SampledValueType
"""

unit: Optional[Union[enums.StandardizedUnitsOfMeasureType, str]] = None

Check warning on line 537 in ocpp/v201/datatypes.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Use a union type expression for this type hint.

See more on https://sonarcloud.io/project/issues?id=mobilityhouse_ocpp&issues=AaDwYfHntRxBjtE1ibW2&open=AaDwYfHntRxBjtE1ibW2&pullRequest=767
multiplier: Optional[int] = None


Expand Down Expand Up @@ -735,19 +714,6 @@
variable_characteristics: Optional[VariableCharacteristicsType] = None


@dataclass
class SalesTariffType:
"""
This dataType is based on dataTypes from ISO 15118-2.
SalesTariffType is used by: ChargingScheduleType
"""

id: int
sales_tariff_entry: List[SalesTariffEntryType]
sales_tariff_description: Optional[str] = None
num_e_price_levels: Optional[int] = None


@dataclass
class SetMonitoringDataType:
"""
Expand Down
Loading