openadr3-client-gac-compliance 1.3.0__py3-none-any.whl → 1.4.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.
- openadr3_client_gac_compliance/gac20/event_gac_compliant.py +12 -12
- {openadr3_client_gac_compliance-1.3.0.dist-info → openadr3_client_gac_compliance-1.4.0.dist-info}/METADATA +2 -2
- {openadr3_client_gac_compliance-1.3.0.dist-info → openadr3_client_gac_compliance-1.4.0.dist-info}/RECORD +5 -5
- {openadr3_client_gac_compliance-1.3.0.dist-info → openadr3_client_gac_compliance-1.4.0.dist-info}/LICENSE.md +0 -0
- {openadr3_client_gac_compliance-1.3.0.dist-info → openadr3_client_gac_compliance-1.4.0.dist-info}/WHEEL +0 -0
|
@@ -228,34 +228,34 @@ def _payload_descriptor_gac_compliant(
|
|
|
228
228
|
"""
|
|
229
229
|
validation_errors: list[InitErrorDetails] = []
|
|
230
230
|
|
|
231
|
-
if self.
|
|
231
|
+
if self.payload_descriptors is None:
|
|
232
232
|
validation_errors.append(
|
|
233
233
|
InitErrorDetails(
|
|
234
234
|
type=PydanticCustomError(
|
|
235
235
|
"value_error",
|
|
236
236
|
"The event must have a payload descriptor.",
|
|
237
237
|
),
|
|
238
|
-
loc=("
|
|
239
|
-
input=self.
|
|
238
|
+
loc=("payload_descriptors",),
|
|
239
|
+
input=self.payload_descriptors,
|
|
240
240
|
ctx={},
|
|
241
241
|
)
|
|
242
242
|
)
|
|
243
243
|
|
|
244
|
-
if self.
|
|
245
|
-
if len(self.
|
|
244
|
+
if self.payload_descriptors is not None:
|
|
245
|
+
if len(self.payload_descriptors) != 1:
|
|
246
246
|
validation_errors.append(
|
|
247
247
|
InitErrorDetails(
|
|
248
248
|
type=PydanticCustomError(
|
|
249
249
|
"value_error",
|
|
250
250
|
"The event must have exactly one payload descriptor.",
|
|
251
251
|
),
|
|
252
|
-
loc=("
|
|
253
|
-
input=self.
|
|
252
|
+
loc=("payload_descriptors",),
|
|
253
|
+
input=self.payload_descriptors,
|
|
254
254
|
ctx={},
|
|
255
255
|
)
|
|
256
256
|
)
|
|
257
257
|
|
|
258
|
-
payload_descriptor = self.
|
|
258
|
+
payload_descriptor = self.payload_descriptors[0]
|
|
259
259
|
|
|
260
260
|
if payload_descriptor.payload_type != EventPayloadType.IMPORT_CAPACITY_LIMIT:
|
|
261
261
|
validation_errors.append(
|
|
@@ -264,8 +264,8 @@ def _payload_descriptor_gac_compliant(
|
|
|
264
264
|
"value_error",
|
|
265
265
|
"The payload descriptor must have a payload type of 'IMPORT_CAPACITY_LIMIT'.",
|
|
266
266
|
),
|
|
267
|
-
loc=("
|
|
268
|
-
input=self.
|
|
267
|
+
loc=("payload_descriptors",),
|
|
268
|
+
input=self.payload_descriptors,
|
|
269
269
|
ctx={},
|
|
270
270
|
)
|
|
271
271
|
)
|
|
@@ -277,8 +277,8 @@ def _payload_descriptor_gac_compliant(
|
|
|
277
277
|
"value_error",
|
|
278
278
|
"The payload descriptor must have a units of 'KW' (case sensitive).",
|
|
279
279
|
),
|
|
280
|
-
loc=("
|
|
281
|
-
input=self.
|
|
280
|
+
loc=("payload_descriptors",),
|
|
281
|
+
input=self.payload_descriptors,
|
|
282
282
|
ctx={},
|
|
283
283
|
)
|
|
284
284
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: openadr3-client-gac-compliance
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.0
|
|
4
4
|
Summary:
|
|
5
5
|
Author: Nick van der Burgt
|
|
6
6
|
Author-email: nick.van.der.burgt@elaad.nl
|
|
@@ -8,7 +8,7 @@ Requires-Python: >=3.12, <4
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
-
Requires-Dist: openadr3-client (>=0.0.
|
|
11
|
+
Requires-Dist: openadr3-client (>=0.0.7,<1.0.0)
|
|
12
12
|
Requires-Dist: pycountry (>=24.6.1,<25.0.0)
|
|
13
13
|
Requires-Dist: pydantic (>=2.11.2,<3.0.0)
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
openadr3_client_gac_compliance/__init__.py,sha256=dzf9YdOlssEb9GSIoThaMzEJ956G-hpLi7HIXRC3TR8,334
|
|
2
2
|
openadr3_client_gac_compliance/config.py,sha256=X_KEl99bUm05rH0IOKLyeR4Zn2utdC8U3vLkdG8MYXU,675
|
|
3
3
|
openadr3_client_gac_compliance/gac20/__init__.py,sha256=YPjRHMl-uR6ZwrDGjY_EboScHe_VhTrovso_zDOSd6o,220
|
|
4
|
-
openadr3_client_gac_compliance/gac20/event_gac_compliant.py,sha256=
|
|
4
|
+
openadr3_client_gac_compliance/gac20/event_gac_compliant.py,sha256=InrNSFXUAu0Bv41A5jyXqMsgqN40-M5Q8t3cOqfymCY,15078
|
|
5
5
|
openadr3_client_gac_compliance/gac20/program_gac_compliant.py,sha256=i7l9oboA31_HMHZ-b8GbVTXGfeNCL3kF-o5e7--riCg,3540
|
|
6
6
|
openadr3_client_gac_compliance/gac20/ven_gac_compliant.py,sha256=57MH73JorFSNyeB6Tep4XX_WMhtKls2DXoSoBaMhob8,1751
|
|
7
7
|
openadr3_client_gac_compliance/gac21/__init__.py,sha256=GTu1EyBj2T72zT3MKPettcvP-DNCJ0p6oAMj3Z-08N0,61
|
|
8
|
-
openadr3_client_gac_compliance-1.
|
|
9
|
-
openadr3_client_gac_compliance-1.
|
|
10
|
-
openadr3_client_gac_compliance-1.
|
|
11
|
-
openadr3_client_gac_compliance-1.
|
|
8
|
+
openadr3_client_gac_compliance-1.4.0.dist-info/LICENSE.md,sha256=NNNxKzhSK6afX-UaN8WZIVtMi5Tu8dVr6q3ciTSnH-g,10250
|
|
9
|
+
openadr3_client_gac_compliance-1.4.0.dist-info/METADATA,sha256=VPS5vP4s0CWbkIWcVaPW4yfZifHTHDBzk3XGOdTJHHA,1096
|
|
10
|
+
openadr3_client_gac_compliance-1.4.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
11
|
+
openadr3_client_gac_compliance-1.4.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|