DLMS-SPODES-client 0.19.21__py3-none-any.whl → 0.19.22__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.
@@ -76,7 +76,8 @@ class Base[T: result.Result](Protocol):
76
76
  if c.media is None:
77
77
  return result.Error.from_e(exc.NoPort("no media"), "PH_connect")
78
78
  if not c.media.is_open():
79
- await c.media.open()
79
+ if isinstance(res_open := await c.media.open(), result.Error):
80
+ return res_open
80
81
  c.level = OSI.PHYSICAL
81
82
  c.log(logL.INFO, F"Open port communication channel: {c.media}")
82
83
  # todo: replace to <data_link>
@@ -322,7 +323,8 @@ class TestDataLink(SimpleCopy, OK):
322
323
  async def physical(self, c: Client) -> result.Ok | result.Error:
323
324
  if OSI.PHYSICAL not in c.level:
324
325
  if not c.media.is_open():
325
- await c.media.open()
326
+ if isinstance(res_open := await c.media.open(), result.Error):
327
+ return res_open
326
328
  c.level = OSI.PHYSICAL
327
329
  c.DA = frame.Address(
328
330
  upper_address=int(c.server_SAP),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DLMS_SPODES_client
3
- Version: 0.19.21
3
+ Version: 0.19.22
4
4
  Summary: dlms-spodes
5
5
  Author-email: Serj Kotilevski <youserj@outlook.com>
6
6
  Project-URL: Source, https://github.com/youserj/SPODESclient_prj
@@ -14,7 +14,7 @@ Requires-Dist: pydantic>=2.11
14
14
  Requires-Dist: pycryptodomex>=3.22.0
15
15
  Requires-Dist: semver>=3.0
16
16
  Requires-Dist: StructResult<0.10,>=0.9.2
17
- Requires-Dist: DLMS-SPODES-communications<1.5,>=1.4.9
17
+ Requires-Dist: DLMS-SPODES-communications<1.6,>=1.5.0
18
18
  Requires-Dist: DLMS_SPODES<0.88,>=0.87.8
19
19
  Requires-Dist: DLMSadapter<0.8,>=0.7.6
20
20
  Requires-Dist: DLMSCommunicationProfile<0.2,>=0.1.11
@@ -6,7 +6,7 @@ DLMS_SPODES_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  DLMS_SPODES_client/services.py,sha256=xM_-h322V1bGBcw9cJh7XOSUMTL3_E-GX89-z3YwIYw,3909
7
7
  DLMS_SPODES_client/session.py,sha256=nPzXujpmGSTFFvhyZRjgH_RLX1DS9moRddUEZuf-QEE,12760
8
8
  DLMS_SPODES_client/settings.py,sha256=6mitGe9UYeEgL61sf933MJ-S5N-ReoxvXqiI3agBGYE,1623
9
- DLMS_SPODES_client/task.py,sha256=wJEYw4Ld8cBAi2eMzvNvNAc69DaCV33Vjssv7f8smlA,77844
9
+ DLMS_SPODES_client/task.py,sha256=aQgsZNJ9ktS5JkBXvedlg4-zcdlKE35E6DzsaMkPGbk,77998
10
10
  DLMS_SPODES_client/gurux_common/enums/TraceLevel.py,sha256=Ne0Rn3c9ACqQjmde_ksbiQxIUv6nXsPQRnhkGwIv3QI,521
11
11
  DLMS_SPODES_client/gurux_common/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  DLMS_SPODES_client/gurux_dlms/AesGcmParameter.py,sha256=HJt0uvxtkqKEkvfiqXTMNsiayN15AgPJa9_iMSSFZsQ,1429
@@ -54,8 +54,8 @@ DLMS_SPODES_client/gurux_dlms/enums/Task.py,sha256=chuOL6-IMxBvABUZtoFcaYaQQB4GZ
54
54
  DLMS_SPODES_client/gurux_dlms/enums/VdeStateError.py,sha256=qT87LMbIYEs3TYPIp3N-dR2Tcg9KhKyiELwhVl5U-tw,233
55
55
  DLMS_SPODES_client/gurux_dlms/enums/__init__.py,sha256=F_sgGwNmmdpbKvP1klJQUNiLXxU2BtZ-LgEI9e6xP8g,1314
56
56
  DLMS_SPODES_client/gurux_dlms/internal/_GXCommon.py,sha256=7D9EYcfiZxwbk8sfpHv7s2nYqrbmGf-Tbwv2T-gqmgk,53226
57
- dlms_spodes_client-0.19.21.dist-info/METADATA,sha256=diEibtEXXEZhLaSqJgunuNJ2uMuN5pjSTAtl3QSPVqU,986
58
- dlms_spodes_client-0.19.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
59
- dlms_spodes_client-0.19.21.dist-info/entry_points.txt,sha256=Z6UTeQjjCf2k1Y3Bjs0s7yr-UYSWb-TvJMuG2K2MApw,70
60
- dlms_spodes_client-0.19.21.dist-info/top_level.txt,sha256=rh_3Uig5bc6J_lKni01btol7dX_IgIJulNtGjGehmBE,19
61
- dlms_spodes_client-0.19.21.dist-info/RECORD,,
57
+ dlms_spodes_client-0.19.22.dist-info/METADATA,sha256=zC-UO6mR8ZlNbgeX3TKrUKl1gLQI1VUUAL76U1SmWvA,986
58
+ dlms_spodes_client-0.19.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
59
+ dlms_spodes_client-0.19.22.dist-info/entry_points.txt,sha256=Z6UTeQjjCf2k1Y3Bjs0s7yr-UYSWb-TvJMuG2K2MApw,70
60
+ dlms_spodes_client-0.19.22.dist-info/top_level.txt,sha256=rh_3Uig5bc6J_lKni01btol7dX_IgIJulNtGjGehmBE,19
61
+ dlms_spodes_client-0.19.22.dist-info/RECORD,,