s2-python 0.4.0__py3-none-any.whl → 0.5.0__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.
- {s2_python-0.4.0.dist-info → s2_python-0.5.0.dist-info}/METADATA +4 -3
- s2_python-0.5.0.dist-info/RECORD +82 -0
- {s2_python-0.4.0.dist-info → s2_python-0.5.0.dist-info}/WHEEL +1 -1
- s2python/common/__init__.py +32 -0
- s2python/common/duration.py +3 -1
- s2python/common/handshake.py +2 -2
- s2python/common/handshake_response.py +2 -2
- s2python/common/instruction_status_update.py +3 -3
- s2python/common/number_range.py +1 -1
- s2python/common/power_forecast.py +3 -3
- s2python/common/power_forecast_element.py +5 -5
- s2python/common/power_forecast_value.py +1 -1
- s2python/common/power_measurement.py +3 -3
- s2python/common/power_range.py +1 -1
- s2python/common/power_value.py +1 -1
- s2python/common/reception_status.py +2 -2
- s2python/common/resource_manager_details.py +6 -6
- s2python/common/revoke_object.py +3 -3
- s2python/common/role.py +1 -1
- s2python/common/select_control_type.py +2 -2
- s2python/common/session_request.py +2 -2
- s2python/common/timer.py +3 -3
- s2python/common/transition.py +8 -8
- s2python/ddbc/__init__.py +21 -0
- s2python/ddbc/ddbc_actuator_description.py +30 -0
- s2python/ddbc/ddbc_actuator_status.py +22 -0
- s2python/ddbc/ddbc_average_demand_rate_forecast.py +28 -0
- s2python/ddbc/ddbc_average_demand_rate_forecast_element.py +21 -0
- s2python/ddbc/ddbc_instruction.py +19 -0
- s2python/ddbc/ddbc_operation_mode.py +26 -0
- s2python/ddbc/ddbc_system_description.py +29 -0
- s2python/ddbc/ddbc_timer_status.py +18 -0
- s2python/frbc/__init__.py +19 -3
- s2python/frbc/frbc_actuator_description.py +9 -7
- s2python/frbc/frbc_actuator_status.py +5 -5
- s2python/frbc/frbc_fill_level_target_profile.py +3 -3
- s2python/frbc/frbc_fill_level_target_profile_element.py +3 -5
- s2python/frbc/frbc_instruction.py +5 -5
- s2python/frbc/frbc_leakage_behaviour.py +3 -3
- s2python/frbc/frbc_leakage_behaviour_element.py +2 -4
- s2python/frbc/frbc_operation_mode.py +6 -4
- s2python/frbc/frbc_operation_mode_element.py +5 -5
- s2python/frbc/frbc_storage_description.py +2 -2
- s2python/frbc/frbc_storage_status.py +2 -2
- s2python/frbc/frbc_system_description.py +4 -4
- s2python/frbc/frbc_timer_status.py +4 -4
- s2python/frbc/frbc_usage_forecast.py +3 -3
- s2python/frbc/frbc_usage_forecast_element.py +2 -2
- s2python/generated/gen_s2.py +507 -543
- s2python/message.py +90 -6
- s2python/pebc/__init__.py +21 -0
- s2python/pebc/pebc_allowed_limit_range.py +26 -0
- s2python/pebc/pebc_energy_constraint.py +25 -0
- s2python/pebc/pebc_instruction.py +27 -0
- s2python/pebc/pebc_power_constraints.py +27 -0
- s2python/pebc/pebc_power_envelope.py +23 -0
- s2python/pebc/pebc_power_envelope_element.py +16 -0
- s2python/ppbc/__init__.py +15 -6
- s2python/ppbc/ppbc_end_interruption_instruction.py +6 -8
- s2python/ppbc/ppbc_power_profile_definition.py +4 -6
- s2python/ppbc/ppbc_power_profile_status.py +2 -4
- s2python/ppbc/ppbc_power_sequence.py +6 -6
- s2python/ppbc/ppbc_power_sequence_container.py +5 -7
- s2python/ppbc/ppbc_power_sequence_container_status.py +7 -9
- s2python/ppbc/ppbc_power_sequence_element.py +3 -5
- s2python/ppbc/ppbc_schedule_instruction.py +6 -8
- s2python/ppbc/ppbc_start_interruption_instruction.py +6 -8
- s2python/s2_connection.py +30 -12
- s2python/s2_control_type.py +15 -0
- s2python/s2_parser.py +1 -3
- s2python/validate_values_mixin.py +29 -14
- s2_python-0.4.0.dist-info/RECORD +0 -66
- {s2_python-0.4.0.dist-info → s2_python-0.5.0.dist-info}/entry_points.txt +0 -0
- {s2_python-0.4.0.dist-info → s2_python-0.5.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,18 @@
|
|
1
|
+
import uuid
|
2
|
+
|
3
|
+
from s2python.generated.gen_s2 import DDBCTimerStatus as GenDDBCTimerStatus
|
4
|
+
|
5
|
+
from s2python.validate_values_mixin import (
|
6
|
+
catch_and_convert_exceptions,
|
7
|
+
S2MessageComponent,
|
8
|
+
)
|
9
|
+
|
10
|
+
|
11
|
+
@catch_and_convert_exceptions
|
12
|
+
class DDBCTimerStatus(GenDDBCTimerStatus, S2MessageComponent):
|
13
|
+
model_config = GenDDBCTimerStatus.model_config
|
14
|
+
model_config["validate_assignment"] = True
|
15
|
+
|
16
|
+
message_id: uuid.UUID = GenDDBCTimerStatus.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
17
|
+
timer_id: uuid.UUID = GenDDBCTimerStatus.model_fields["timer_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
18
|
+
actuator_id: uuid.UUID = GenDDBCTimerStatus.model_fields["actuator_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
s2python/frbc/__init__.py
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
from s2python.frbc.frbc_fill_level_target_profile_element import
|
2
|
-
FRBCFillLevelTargetProfileElement,
|
3
|
-
)
|
1
|
+
from s2python.frbc.frbc_fill_level_target_profile_element import FRBCFillLevelTargetProfileElement
|
4
2
|
from s2python.frbc.frbc_fill_level_target_profile import FRBCFillLevelTargetProfile
|
5
3
|
from s2python.frbc.frbc_instruction import FRBCInstruction
|
6
4
|
from s2python.frbc.frbc_leakage_behaviour_element import FRBCLeakageBehaviourElement
|
@@ -15,3 +13,21 @@ from s2python.frbc.frbc_storage_description import FRBCStorageDescription
|
|
15
13
|
from s2python.frbc.frbc_storage_status import FRBCStorageStatus
|
16
14
|
from s2python.frbc.frbc_system_description import FRBCSystemDescription
|
17
15
|
from s2python.frbc.frbc_timer_status import FRBCTimerStatus
|
16
|
+
|
17
|
+
__all__ = [
|
18
|
+
"FRBCFillLevelTargetProfileElement",
|
19
|
+
"FRBCFillLevelTargetProfile",
|
20
|
+
"FRBCInstruction",
|
21
|
+
"FRBCLeakageBehaviourElement",
|
22
|
+
"FRBCLeakageBehaviour",
|
23
|
+
"FRBCUsageForecastElement",
|
24
|
+
"FRBCUsageForecast",
|
25
|
+
"FRBCOperationModeElement",
|
26
|
+
"FRBCOperationMode",
|
27
|
+
"FRBCActuatorDescription",
|
28
|
+
"FRBCActuatorStatus",
|
29
|
+
"FRBCStorageDescription",
|
30
|
+
"FRBCStorageStatus",
|
31
|
+
"FRBCSystemDescription",
|
32
|
+
"FRBCTimerStatus",
|
33
|
+
]
|
@@ -18,19 +18,19 @@ from s2python.validate_values_mixin import (
|
|
18
18
|
|
19
19
|
|
20
20
|
@catch_and_convert_exceptions
|
21
|
-
class FRBCActuatorDescription(GenFRBCActuatorDescription, S2MessageComponent
|
21
|
+
class FRBCActuatorDescription(GenFRBCActuatorDescription, S2MessageComponent):
|
22
22
|
model_config = GenFRBCActuatorDescription.model_config
|
23
23
|
model_config["validate_assignment"] = True
|
24
24
|
|
25
|
-
id: uuid.UUID = GenFRBCActuatorDescription.model_fields["id"] # type: ignore[assignment]
|
26
|
-
operation_modes: List[FRBCOperationMode] = GenFRBCActuatorDescription.model_fields[
|
25
|
+
id: uuid.UUID = GenFRBCActuatorDescription.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
26
|
+
operation_modes: List[FRBCOperationMode] = GenFRBCActuatorDescription.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
27
27
|
"operation_modes"
|
28
28
|
] # type: ignore[assignment]
|
29
|
-
transitions: List[Transition] = GenFRBCActuatorDescription.model_fields["transitions"] # type: ignore[assignment]
|
30
|
-
timers: List[Timer] = GenFRBCActuatorDescription.model_fields["timers"] # type: ignore[assignment]
|
29
|
+
transitions: List[Transition] = GenFRBCActuatorDescription.model_fields["transitions"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
30
|
+
timers: List[Timer] = GenFRBCActuatorDescription.model_fields["timers"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
31
31
|
supported_commodities: List[Commodity] = GenFRBCActuatorDescription.model_fields[
|
32
32
|
"supported_commodities"
|
33
|
-
] # type: ignore[assignment]
|
33
|
+
] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
34
34
|
|
35
35
|
@model_validator(mode="after")
|
36
36
|
def validate_timers_in_transitions(self) -> Self:
|
@@ -68,7 +68,9 @@ class FRBCActuatorDescription(GenFRBCActuatorDescription, S2MessageComponent["FR
|
|
68
68
|
|
69
69
|
@model_validator(mode="after")
|
70
70
|
def validate_operation_modes_in_transitions(self) -> Self:
|
71
|
-
operation_mode_by_id = {
|
71
|
+
operation_mode_by_id = {
|
72
|
+
operation_mode.id: operation_mode for operation_mode in self.operation_modes
|
73
|
+
}
|
72
74
|
transition: Transition
|
73
75
|
for transition in self.transitions:
|
74
76
|
if transition.from_ not in operation_mode_by_id:
|
@@ -9,15 +9,15 @@ from s2python.validate_values_mixin import (
|
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class FRBCActuatorStatus(GenFRBCActuatorStatus, S2MessageComponent
|
12
|
+
class FRBCActuatorStatus(GenFRBCActuatorStatus, S2MessageComponent):
|
13
13
|
model_config = GenFRBCActuatorStatus.model_config
|
14
14
|
model_config["validate_assignment"] = True
|
15
15
|
|
16
|
-
active_operation_mode_id: uuid.UUID = GenFRBCActuatorStatus.model_fields[
|
16
|
+
active_operation_mode_id: uuid.UUID = GenFRBCActuatorStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
17
17
|
"active_operation_mode_id"
|
18
18
|
] # type: ignore[assignment]
|
19
|
-
actuator_id: uuid.UUID = GenFRBCActuatorStatus.model_fields["actuator_id"] # type: ignore[assignment]
|
20
|
-
message_id: uuid.UUID = GenFRBCActuatorStatus.model_fields["message_id"] # type: ignore[assignment]
|
21
|
-
previous_operation_mode_id: Optional[uuid.UUID] = GenFRBCActuatorStatus.model_fields[
|
19
|
+
actuator_id: uuid.UUID = GenFRBCActuatorStatus.model_fields["actuator_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
|
+
message_id: uuid.UUID = GenFRBCActuatorStatus.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
21
|
+
previous_operation_mode_id: Optional[uuid.UUID] = GenFRBCActuatorStatus.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
22
|
"previous_operation_mode_id"
|
23
23
|
] # type: ignore[assignment]
|
@@ -14,11 +14,11 @@ from s2python.validate_values_mixin import (
|
|
14
14
|
|
15
15
|
|
16
16
|
@catch_and_convert_exceptions
|
17
|
-
class FRBCFillLevelTargetProfile(GenFRBCFillLevelTargetProfile, S2MessageComponent
|
17
|
+
class FRBCFillLevelTargetProfile(GenFRBCFillLevelTargetProfile, S2MessageComponent):
|
18
18
|
model_config = GenFRBCFillLevelTargetProfile.model_config
|
19
19
|
model_config["validate_assignment"] = True
|
20
20
|
|
21
|
-
elements: List[FRBCFillLevelTargetProfileElement] = GenFRBCFillLevelTargetProfile.model_fields[
|
21
|
+
elements: List[FRBCFillLevelTargetProfileElement] = GenFRBCFillLevelTargetProfile.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
22
22
|
"elements"
|
23
23
|
] # type: ignore[assignment]
|
24
|
-
message_id: uuid.UUID = GenFRBCFillLevelTargetProfile.model_fields["message_id"] # type: ignore[assignment]
|
24
|
+
message_id: uuid.UUID = GenFRBCFillLevelTargetProfile.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -12,14 +12,12 @@ from s2python.validate_values_mixin import catch_and_convert_exceptions, S2Messa
|
|
12
12
|
|
13
13
|
|
14
14
|
@catch_and_convert_exceptions
|
15
|
-
class FRBCFillLevelTargetProfileElement(
|
16
|
-
GenFRBCFillLevelTargetProfileElement, S2MessageComponent["FRBCFillLevelTargetProfileElement"]
|
17
|
-
):
|
15
|
+
class FRBCFillLevelTargetProfileElement(GenFRBCFillLevelTargetProfileElement, S2MessageComponent):
|
18
16
|
model_config = GenFRBCFillLevelTargetProfileElement.model_config
|
19
17
|
model_config["validate_assignment"] = True
|
20
18
|
|
21
|
-
duration: Duration = GenFRBCFillLevelTargetProfileElement.model_fields["duration"] # type: ignore[assignment]
|
22
|
-
fill_level_range: NumberRange = GenFRBCFillLevelTargetProfileElement.model_fields[
|
19
|
+
duration: Duration = GenFRBCFillLevelTargetProfileElement.model_fields["duration"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
20
|
+
fill_level_range: NumberRange = GenFRBCFillLevelTargetProfileElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
23
21
|
"fill_level_range"
|
24
22
|
] # type: ignore[assignment]
|
25
23
|
|
@@ -8,11 +8,11 @@ from s2python.validate_values_mixin import (
|
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCInstruction(GenFRBCInstruction, S2MessageComponent
|
11
|
+
class FRBCInstruction(GenFRBCInstruction, S2MessageComponent):
|
12
12
|
model_config = GenFRBCInstruction.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
15
|
-
actuator_id: uuid.UUID = GenFRBCInstruction.model_fields["actuator_id"] # type: ignore[assignment]
|
16
|
-
id: uuid.UUID = GenFRBCInstruction.model_fields["id"] # type: ignore[assignment]
|
17
|
-
message_id: uuid.UUID = GenFRBCInstruction.model_fields["message_id"] # type: ignore[assignment]
|
18
|
-
operation_mode: uuid.UUID = GenFRBCInstruction.model_fields["operation_mode"] # type: ignore[assignment]
|
15
|
+
actuator_id: uuid.UUID = GenFRBCInstruction.model_fields["actuator_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
16
|
+
id: uuid.UUID = GenFRBCInstruction.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
17
|
+
message_id: uuid.UUID = GenFRBCInstruction.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
18
|
+
operation_mode: uuid.UUID = GenFRBCInstruction.model_fields["operation_mode"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -10,11 +10,11 @@ from s2python.validate_values_mixin import (
|
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCLeakageBehaviour(GenFRBCLeakageBehaviour, S2MessageComponent
|
13
|
+
class FRBCLeakageBehaviour(GenFRBCLeakageBehaviour, S2MessageComponent):
|
14
14
|
model_config = GenFRBCLeakageBehaviour.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
17
|
-
elements: List[FRBCLeakageBehaviourElement] = GenFRBCLeakageBehaviour.model_fields[
|
17
|
+
elements: List[FRBCLeakageBehaviourElement] = GenFRBCLeakageBehaviour.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
18
18
|
"elements"
|
19
19
|
] # type: ignore[assignment]
|
20
|
-
message_id: uuid.UUID = GenFRBCLeakageBehaviour.model_fields["message_id"] # type: ignore[assignment]
|
20
|
+
message_id: uuid.UUID = GenFRBCLeakageBehaviour.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -9,13 +9,11 @@ from s2python.validate_values_mixin import catch_and_convert_exceptions, S2Messa
|
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class FRBCLeakageBehaviourElement(
|
13
|
-
GenFRBCLeakageBehaviourElement, S2MessageComponent["FRBCLeakageBehaviourElement"]
|
14
|
-
):
|
12
|
+
class FRBCLeakageBehaviourElement(GenFRBCLeakageBehaviourElement, S2MessageComponent):
|
15
13
|
model_config = GenFRBCLeakageBehaviourElement.model_config
|
16
14
|
model_config["validate_assignment"] = True
|
17
15
|
|
18
|
-
fill_level_range: NumberRange = GenFRBCLeakageBehaviourElement.model_fields[
|
16
|
+
fill_level_range: NumberRange = GenFRBCLeakageBehaviourElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
19
17
|
"fill_level_range"
|
20
18
|
] # type: ignore[assignment]
|
21
19
|
|
@@ -16,17 +16,19 @@ from s2python.utils import pairwise
|
|
16
16
|
|
17
17
|
|
18
18
|
@catch_and_convert_exceptions
|
19
|
-
class FRBCOperationMode(GenFRBCOperationMode, S2MessageComponent
|
19
|
+
class FRBCOperationMode(GenFRBCOperationMode, S2MessageComponent):
|
20
20
|
model_config = GenFRBCOperationMode.model_config
|
21
21
|
model_config["validate_assignment"] = True
|
22
22
|
|
23
|
-
id: uuid.UUID = GenFRBCOperationMode.model_fields["id"] # type: ignore[assignment]
|
24
|
-
elements: List[FRBCOperationModeElement] = GenFRBCOperationMode.model_fields["elements"] # type: ignore[assignment]
|
23
|
+
id: uuid.UUID = GenFRBCOperationMode.model_fields["id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
24
|
+
elements: List[FRBCOperationModeElement] = GenFRBCOperationMode.model_fields["elements"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
25
25
|
|
26
26
|
@model_validator(mode="after")
|
27
27
|
def validate_contiguous_fill_levels_operation_mode_elements(self) -> Self:
|
28
28
|
elements_by_fill_level_range: Dict[NumberRange, FRBCOperationModeElement]
|
29
|
-
elements_by_fill_level_range = {
|
29
|
+
elements_by_fill_level_range = {
|
30
|
+
element.fill_level_range: element for element in self.elements
|
31
|
+
}
|
30
32
|
|
31
33
|
sorted_fill_level_ranges: List[NumberRange]
|
32
34
|
sorted_fill_level_ranges = list(elements_by_fill_level_range.keys())
|
@@ -11,17 +11,17 @@ from s2python.validate_values_mixin import (
|
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class FRBCOperationModeElement(GenFRBCOperationModeElement, S2MessageComponent
|
14
|
+
class FRBCOperationModeElement(GenFRBCOperationModeElement, S2MessageComponent):
|
15
15
|
model_config = GenFRBCOperationModeElement.model_config
|
16
16
|
model_config["validate_assignment"] = True
|
17
17
|
|
18
|
-
fill_level_range: NumberRange = GenFRBCOperationModeElement.model_fields[
|
18
|
+
fill_level_range: NumberRange = GenFRBCOperationModeElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
19
19
|
"fill_level_range"
|
20
20
|
] # type: ignore[assignment]
|
21
|
-
fill_rate: NumberRange = GenFRBCOperationModeElement.model_fields["fill_rate"] # type: ignore[assignment]
|
22
|
-
power_ranges: List[PowerRange] = GenFRBCOperationModeElement.model_fields[
|
21
|
+
fill_rate: NumberRange = GenFRBCOperationModeElement.model_fields["fill_rate"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
power_ranges: List[PowerRange] = GenFRBCOperationModeElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
23
23
|
"power_ranges"
|
24
24
|
] # type: ignore[assignment]
|
25
|
-
running_costs: Optional[NumberRange] = GenFRBCOperationModeElement.model_fields[
|
25
|
+
running_costs: Optional[NumberRange] = GenFRBCOperationModeElement.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
26
26
|
"running_costs"
|
27
27
|
] # type: ignore[assignment]
|
@@ -9,10 +9,10 @@ from s2python.validate_values_mixin import (
|
|
9
9
|
|
10
10
|
|
11
11
|
@catch_and_convert_exceptions
|
12
|
-
class FRBCStorageDescription(GenFRBCStorageDescription, S2MessageComponent
|
12
|
+
class FRBCStorageDescription(GenFRBCStorageDescription, S2MessageComponent):
|
13
13
|
model_config = GenFRBCStorageDescription.model_config
|
14
14
|
model_config["validate_assignment"] = True
|
15
15
|
|
16
|
-
fill_level_range: NumberRange = GenFRBCStorageDescription.model_fields[
|
16
|
+
fill_level_range: NumberRange = GenFRBCStorageDescription.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
17
17
|
"fill_level_range"
|
18
18
|
] # type: ignore[assignment]
|
@@ -8,8 +8,8 @@ from s2python.validate_values_mixin import (
|
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCStorageStatus(GenFRBCStorageStatus, S2MessageComponent
|
11
|
+
class FRBCStorageStatus(GenFRBCStorageStatus, S2MessageComponent):
|
12
12
|
model_config = GenFRBCStorageStatus.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
15
|
-
message_id: uuid.UUID = GenFRBCStorageStatus.model_fields["message_id"] # type: ignore[assignment]
|
15
|
+
message_id: uuid.UUID = GenFRBCStorageStatus.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -11,12 +11,12 @@ from s2python.frbc.frbc_storage_description import FRBCStorageDescription
|
|
11
11
|
|
12
12
|
|
13
13
|
@catch_and_convert_exceptions
|
14
|
-
class FRBCSystemDescription(GenFRBCSystemDescription, S2MessageComponent
|
14
|
+
class FRBCSystemDescription(GenFRBCSystemDescription, S2MessageComponent):
|
15
15
|
model_config = GenFRBCSystemDescription.model_config
|
16
16
|
model_config["validate_assignment"] = True
|
17
17
|
|
18
|
-
actuators: List[FRBCActuatorDescription] = GenFRBCSystemDescription.model_fields[
|
18
|
+
actuators: List[FRBCActuatorDescription] = GenFRBCSystemDescription.model_fields[ # type: ignore[reportIncompatibleVariableOverride]
|
19
19
|
"actuators"
|
20
20
|
] # type: ignore[assignment]
|
21
|
-
message_id: uuid.UUID = GenFRBCSystemDescription.model_fields["message_id"] # type: ignore[assignment]
|
22
|
-
storage: FRBCStorageDescription = GenFRBCSystemDescription.model_fields["storage"] # type: ignore[assignment]
|
21
|
+
message_id: uuid.UUID = GenFRBCSystemDescription.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
22
|
+
storage: FRBCStorageDescription = GenFRBCSystemDescription.model_fields["storage"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -8,10 +8,10 @@ from s2python.validate_values_mixin import (
|
|
8
8
|
|
9
9
|
|
10
10
|
@catch_and_convert_exceptions
|
11
|
-
class FRBCTimerStatus(GenFRBCTimerStatus, S2MessageComponent
|
11
|
+
class FRBCTimerStatus(GenFRBCTimerStatus, S2MessageComponent):
|
12
12
|
model_config = GenFRBCTimerStatus.model_config
|
13
13
|
model_config["validate_assignment"] = True
|
14
14
|
|
15
|
-
actuator_id: uuid.UUID = GenFRBCTimerStatus.model_fields["actuator_id"] # type: ignore[assignment]
|
16
|
-
message_id: uuid.UUID = GenFRBCTimerStatus.model_fields["message_id"] # type: ignore[assignment]
|
17
|
-
timer_id: uuid.UUID = GenFRBCTimerStatus.model_fields["timer_id"] # type: ignore[assignment]
|
15
|
+
actuator_id: uuid.UUID = GenFRBCTimerStatus.model_fields["actuator_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
16
|
+
message_id: uuid.UUID = GenFRBCTimerStatus.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
17
|
+
timer_id: uuid.UUID = GenFRBCTimerStatus.model_fields["timer_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -10,9 +10,9 @@ from s2python.frbc.frbc_usage_forecast_element import FRBCUsageForecastElement
|
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCUsageForecast(GenFRBCUsageForecast, S2MessageComponent
|
13
|
+
class FRBCUsageForecast(GenFRBCUsageForecast, S2MessageComponent):
|
14
14
|
model_config = GenFRBCUsageForecast.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
17
|
-
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.model_fields["elements"] # type: ignore[assignment]
|
18
|
-
message_id: uuid.UUID = GenFRBCUsageForecast.model_fields["message_id"] # type: ignore[assignment]
|
17
|
+
elements: List[FRBCUsageForecastElement] = GenFRBCUsageForecast.model_fields["elements"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
18
|
+
message_id: uuid.UUID = GenFRBCUsageForecast.model_fields["message_id"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|
@@ -10,8 +10,8 @@ from s2python.validate_values_mixin import (
|
|
10
10
|
|
11
11
|
|
12
12
|
@catch_and_convert_exceptions
|
13
|
-
class FRBCUsageForecastElement(GenFRBCUsageForecastElement, S2MessageComponent
|
13
|
+
class FRBCUsageForecastElement(GenFRBCUsageForecastElement, S2MessageComponent):
|
14
14
|
model_config = GenFRBCUsageForecastElement.model_config
|
15
15
|
model_config["validate_assignment"] = True
|
16
16
|
|
17
|
-
duration: Duration = GenFRBCUsageForecastElement.model_fields["duration"] # type: ignore[assignment]
|
17
|
+
duration: Duration = GenFRBCUsageForecastElement.model_fields["duration"] # type: ignore[assignment,reportIncompatibleVariableOverride]
|