tinytoolslib 0.3.2__tar.gz → 0.3.3__tar.gz

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: tinytoolslib
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Set of tools for use with Tinycontrol devices like LK2.X, LK3.X, LK4.X or tcPDU.
5
5
  Author-email: Bartek Barszczewski <tinycontrol.software@gmail.com>
6
6
  Keywords: tinycontrol,lk,tcpdu
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "tinytoolslib"
7
- version = "0.3.2"
7
+ version = "0.3.3"
8
8
  authors = [
9
9
  { name="Bartek Barszczewski", email="tinycontrol.software@gmail.com" },
10
10
  ]
@@ -0,0 +1 @@
1
+ __version__ = '0.3.3'
@@ -1137,7 +1137,7 @@ class LK_HW_35(LK_HW_30):
1137
1137
  cls, hardware_version: Union[str, None], software_version: str
1138
1138
  ) -> bool:
1139
1139
  return (
1140
- "3.5" <= hardware_version < "4.0"
1140
+ "3.5" <= hardware_version < "3.9"
1141
1141
  and not software_version.endswith("ps")
1142
1142
  and not software_version.endswith("dcdc")
1143
1143
  )
@@ -1164,6 +1164,30 @@ class LK_HW_35(LK_HW_30):
1164
1164
  return cmd
1165
1165
 
1166
1166
 
1167
+ @dataclass
1168
+ class LK_HW_39(LK_HW_35):
1169
+ """Methods for working with LK3.9."""
1170
+
1171
+ info: ClassVar[Union[DeviceInfo, None]] = DeviceInfo(
1172
+ "LK HW 3.9", # Logically belongs to LK3.5 family
1173
+ DeviceFamily.LK,
1174
+ "lc39",
1175
+ "https://tinycontrol.pl/en/lan-controller-35/firmware/#firmware",
1176
+ fw_update_method=FWUpdateMethod.TFTP,
1177
+ extras={"number_of_outputs": 6},
1178
+ )
1179
+
1180
+ @classmethod
1181
+ def check_version(
1182
+ cls, hardware_version: Union[str, None], software_version: str
1183
+ ) -> bool:
1184
+ return (
1185
+ "3.9" <= hardware_version < "4.0"
1186
+ and not software_version.endswith("ps")
1187
+ and not software_version.endswith("dcdc")
1188
+ )
1189
+
1190
+
1167
1191
  @dataclass
1168
1192
  class LK_HW_35_PS(LK_HW_35):
1169
1193
  """Methods for working with IP Power Socket v2 (LK3.5)."""
@@ -1475,6 +1499,7 @@ DEVICE_MODELS = [
1475
1499
  LK_HW_40_mini,
1476
1500
  TCPDU,
1477
1501
  LK_HW_40,
1502
+ LK_HW_39,
1478
1503
  LK_HW_35,
1479
1504
  LK_HW_35_PS,
1480
1505
  LK_HW_35_DCDC,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tinytoolslib
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Set of tools for use with Tinycontrol devices like LK2.X, LK3.X, LK4.X or tcPDU.
5
5
  Author-email: Bartek Barszczewski <tinycontrol.software@gmail.com>
6
6
  Keywords: tinycontrol,lk,tcpdu
@@ -1 +0,0 @@
1
- __version__ = '0.3.2'
File without changes
File without changes