conson-xp 1.7.0__py3-none-any.whl → 1.8.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: conson-xp
3
- Version: 1.7.0
3
+ Version: 1.8.0
4
4
  Summary: XP Protocol Communication Tools
5
5
  Author-Email: ldvchosal <ldvchosal@github.com>
6
6
  License: MIT License
@@ -1,8 +1,8 @@
1
- conson_xp-1.7.0.dist-info/METADATA,sha256=zJcFXnX0j-cYc8sCjdUkPuDsGp0-ji8KCGwE79oxZNQ,9274
2
- conson_xp-1.7.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- conson_xp-1.7.0.dist-info/entry_points.txt,sha256=1OcdIcDM1hz3ljCXgybaPUh1IOFEwkaTgLIW9u9zGeg,50
4
- conson_xp-1.7.0.dist-info/licenses/LICENSE,sha256=rxj6woMM-r3YCyGq_UHFtbh7kHTAJgrccH6O-33IDE4,1419
5
- xp/__init__.py,sha256=IyP3xj9rnVfGLnpDwGvX8oBbLbm-WT5Qx42Tf8OD9I4,180
1
+ conson_xp-1.8.0.dist-info/METADATA,sha256=k_y3CTe1PGLQhEJfZcuuucVkm0KXbimm6gJlZeyiJtg,9274
2
+ conson_xp-1.8.0.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
+ conson_xp-1.8.0.dist-info/entry_points.txt,sha256=1OcdIcDM1hz3ljCXgybaPUh1IOFEwkaTgLIW9u9zGeg,50
4
+ conson_xp-1.8.0.dist-info/licenses/LICENSE,sha256=rxj6woMM-r3YCyGq_UHFtbh7kHTAJgrccH6O-33IDE4,1419
5
+ xp/__init__.py,sha256=zNtMk7hYttYnPyJca9Y2bNXm1-ItuKG_qhNSWF9BH6k,180
6
6
  xp/cli/__init__.py,sha256=QjnKB1KaI2aIyKlzrnvCwfbBuUj8HNgwNMvNJVQofbI,81
7
7
  xp/cli/__main__.py,sha256=l2iKwMdat5rTGd3JWs-uGksnYYDDffp_Npz05QdKEeU,117
8
8
  xp/cli/commands/__init__.py,sha256=02CbZoKmNX-fn5etX4Hdgg2lUt1MsLFPYx2VkXZyFJ8,4394
@@ -84,7 +84,7 @@ xp/models/telegram/action_type.py,sha256=vkw_chTgmsadksGXvZ9D_qYGpjOwCw-OgbEi8Bm
84
84
  xp/models/telegram/datapoint_type.py,sha256=clmgqCsTNKuHmWN6ol2Hwj_71I10f36Oq-S5D5ZA9a8,2942
85
85
  xp/models/telegram/event_telegram.py,sha256=FCCfyZXQEUPB6Uo1m7B9nvFCJ0Ipv2CApmImAZo_Xa4,4689
86
86
  xp/models/telegram/event_type.py,sha256=VZhaDpey7KYWnmwN-gstj-r4Vd5hiGdzQuRazUdixB8,333
87
- xp/models/telegram/input_action_type.py,sha256=jELnLL10CilKp19r1-IUn4v3pHXvIGefChC6ln3nJOM,1874
87
+ xp/models/telegram/input_action_type.py,sha256=_0D6U6WslUcA1imht7ZQ5t8EAvkqyk7c2IfmNqZAAR0,1868
88
88
  xp/models/telegram/input_type.py,sha256=X3AcKKMNHswNZs5xgT_AnxeKQpSx_U7ctGnr6AYqNoU,491
89
89
  xp/models/telegram/module_type.py,sha256=TdrcQC3UcdESzyUmS9PaVeJuF5VxH1WUtDWdf4QRA50,5223
90
90
  xp/models/telegram/module_type_code.py,sha256=bg8Zi58yKs5DDnEF0bGnZ9vvpqzmIZzd1k9Wu4ufB-Y,8177
@@ -105,8 +105,8 @@ xp/services/actiontable/msactiontable_xp24_serializer.py,sha256=zdKzcrKqD41POqj_
105
105
  xp/services/actiontable/msactiontable_xp33_serializer.py,sha256=xoZBA38pBSUPA9nn7HgaH1ZM5sR2heQbJ6JVlPVbzUY,8400
106
106
  xp/services/conbus/__init__.py,sha256=Hi35sMKu9o6LpYoi2tQDaQoMb8M5sOt_-LUTxxaCU_0,28
107
107
  xp/services/conbus/actiontable/__init__.py,sha256=oD6vRk_Ye-eZ9s_hldAgtRJFu4mfAnODqpkJUGHHszk,40
108
- xp/services/conbus/actiontable/actiontable_service.py,sha256=uy-BFCsjDoe1ZuZy9cTwRSIfMSxznLEN-iMtTsPW3EI,5626
109
- xp/services/conbus/actiontable/msactiontable_service.py,sha256=yeMJRHVJe2s_-MquOdZDDym3g7135J3CzhxfEa6Qmkc,8357
108
+ xp/services/conbus/actiontable/actiontable_service.py,sha256=eLSrB-SF-5jqW5mI43i-r4d5p2KsMpnEFHLf4cbuXng,5688
109
+ xp/services/conbus/actiontable/msactiontable_service.py,sha256=K0TiYL8g4ac8BS1tqS0UAIYJigOlNhxVLIb8ZFybnVE,8393
110
110
  xp/services/conbus/conbus_blink_all_service.py,sha256=OaEg4b8AEiEruHSkZ5jDtaoI81vwwxLq4KWXO7zBdD0,6582
111
111
  xp/services/conbus/conbus_blink_service.py,sha256=x9uM-sLnIEV8wSNsvJgo08E042g-Hh2ZF3rXkz-k_9s,5824
112
112
  xp/services/conbus/conbus_custom_service.py,sha256=4aneYdPObiZOGxPFYg5Wr70cl_xFxlQIdJBPQSa0enI,5826
@@ -164,4 +164,4 @@ xp/utils/dependencies.py,sha256=1XDwIg3OsmLvOazMQ3qaktcsitYW8E400RxihNWgyt0,1889
164
164
  xp/utils/event_helper.py,sha256=W-A_xmoXlpWZBbJH6qdaN50o3-XrwFsDgvAGMJDiAgo,1001
165
165
  xp/utils/serialization.py,sha256=RWHHk86feaB4ZP7rjE4qOWK0900yg2joUBDkP76gfOY,4618
166
166
  xp/utils/time_utils.py,sha256=dEyViDlAG9GWU-J3D_YVa-sGma6yiyyMTgN4h2x3PY4,3781
167
- conson_xp-1.7.0.dist-info/RECORD,,
167
+ conson_xp-1.8.0.dist-info/RECORD,,
xp/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  conson-xp package.
4
4
  """
5
5
 
6
- __version__ = "1.7.0"
6
+ __version__ = "1.8.0"
7
7
  __manufacturer__ = "salchichon"
8
8
  __model__ = "xp.cli"
9
9
  __serial__ = "2025.09.23.000"
@@ -1,9 +1,9 @@
1
1
  """Input action types for XP24 module based on Feature-Action-Table.md."""
2
2
 
3
- from enum import IntEnum
3
+ from enum import Enum
4
4
 
5
5
 
6
- class InputActionType(IntEnum):
6
+ class InputActionType(Enum):
7
7
  """Input action types for XP24 module (based on Feature-Action-Table.md).
8
8
 
9
9
  Attributes:
@@ -51,7 +51,9 @@ class ActionTableService(ConbusProtocol):
51
51
 
52
52
  def connection_established(self) -> None:
53
53
  """Handle connection established event."""
54
- self.logger.debug("Connection established, sending discover telegram")
54
+ self.logger.debug(
55
+ "Connection established, sending download actiontable telegram"
56
+ )
55
57
  self.send_telegram(
56
58
  telegram_type=TelegramType.SYSTEM,
57
59
  serial_number=self.serial_number,
@@ -82,7 +84,9 @@ class ActionTableService(ConbusProtocol):
82
84
  self.logger.debug("Not a reply response")
83
85
  return
84
86
 
85
- reply_telegram = self.telegram_service.parse_reply_telegram(telegram_received)
87
+ reply_telegram = self.telegram_service.parse_reply_telegram(
88
+ telegram_received.frame
89
+ )
86
90
  if reply_telegram.system_function not in (
87
91
  SystemFunction.ACTIONTABLE,
88
92
  SystemFunction.EOF,
@@ -84,7 +84,9 @@ class MsActionTableService(ConbusProtocol):
84
84
 
85
85
  def connection_established(self) -> None:
86
86
  """Handle connection established event."""
87
- self.logger.debug("Connection established, sending discover telegram")
87
+ self.logger.debug(
88
+ "Connection established, sending download msactiontable telegram"
89
+ )
88
90
  self.send_telegram(
89
91
  telegram_type=TelegramType.SYSTEM,
90
92
  serial_number=self.serial_number,