pypck 0.8.11__tar.gz → 0.8.12__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.
Files changed (29) hide show
  1. {pypck-0.8.11/pypck.egg-info → pypck-0.8.12}/PKG-INFO +1 -1
  2. pypck-0.8.12/VERSION +1 -0
  3. {pypck-0.8.11 → pypck-0.8.12}/pypck/module.py +4 -1
  4. {pypck-0.8.11 → pypck-0.8.12}/pypck/pck_commands.py +4 -2
  5. {pypck-0.8.11 → pypck-0.8.12/pypck.egg-info}/PKG-INFO +1 -1
  6. {pypck-0.8.11 → pypck-0.8.12}/pypck.egg-info/SOURCES.txt +0 -1
  7. {pypck-0.8.11 → pypck-0.8.12}/pyproject.toml +0 -3
  8. {pypck-0.8.11 → pypck-0.8.12}/tests/test_commands.py +10 -2
  9. pypck-0.8.11/VERSION +0 -1
  10. pypck-0.8.11/pypck/py.typed +0 -0
  11. {pypck-0.8.11 → pypck-0.8.12}/LICENSE +0 -0
  12. {pypck-0.8.11 → pypck-0.8.12}/README.md +0 -0
  13. {pypck-0.8.11 → pypck-0.8.12}/pypck/__init__.py +0 -0
  14. {pypck-0.8.11 → pypck-0.8.12}/pypck/connection.py +0 -0
  15. {pypck-0.8.11 → pypck-0.8.12}/pypck/helpers.py +0 -0
  16. {pypck-0.8.11 → pypck-0.8.12}/pypck/inputs.py +0 -0
  17. {pypck-0.8.11 → pypck-0.8.12}/pypck/lcn_addr.py +0 -0
  18. {pypck-0.8.11 → pypck-0.8.12}/pypck/lcn_defs.py +0 -0
  19. {pypck-0.8.11 → pypck-0.8.12}/pypck/request_handlers.py +0 -0
  20. {pypck-0.8.11 → pypck-0.8.12}/pypck/timeout_retry.py +0 -0
  21. {pypck-0.8.11 → pypck-0.8.12}/pypck.egg-info/dependency_links.txt +0 -0
  22. {pypck-0.8.11 → pypck-0.8.12}/pypck.egg-info/not-zip-safe +0 -0
  23. {pypck-0.8.11 → pypck-0.8.12}/pypck.egg-info/top_level.txt +0 -0
  24. {pypck-0.8.11 → pypck-0.8.12}/setup.cfg +0 -0
  25. {pypck-0.8.11 → pypck-0.8.12}/tests/test_connection.py +0 -0
  26. {pypck-0.8.11 → pypck-0.8.12}/tests/test_dyn_text.py +0 -0
  27. {pypck-0.8.11 → pypck-0.8.12}/tests/test_input.py +0 -0
  28. {pypck-0.8.11 → pypck-0.8.12}/tests/test_messages.py +0 -0
  29. {pypck-0.8.11 → pypck-0.8.12}/tests/test_vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypck
3
- Version: 0.8.11
3
+ Version: 0.8.12
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
pypck-0.8.12/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.8.12
@@ -596,7 +596,10 @@ class AbstractConnection:
596
596
  )
597
597
 
598
598
  async def lock_keys_tab_a_temporary(
599
- self, delay_time: int, delay_unit: lcn_defs.TimeUnit, states: list[bool]
599
+ self,
600
+ delay_time: int,
601
+ delay_unit: lcn_defs.TimeUnit,
602
+ states: list[lcn_defs.KeyLockStateModifier],
600
603
  ) -> bool:
601
604
  """Send a command to lock keys in table A temporary.
602
605
 
@@ -1048,7 +1048,9 @@ class PckGenerator:
1048
1048
 
1049
1049
  @staticmethod
1050
1050
  def lock_keys_tab_a_temporary(
1051
- time: int, time_unit: lcn_defs.TimeUnit, keys: list[bool]
1051
+ time: int,
1052
+ time_unit: lcn_defs.TimeUnit,
1053
+ keys: list[lcn_defs.KeyLockStateModifier],
1052
1054
  ) -> str:
1053
1055
  """Generate a command to lock keys for table A temporary.
1054
1056
 
@@ -1085,7 +1087,7 @@ class PckGenerator:
1085
1087
  raise ValueError("Wrong time_unit.")
1086
1088
 
1087
1089
  for key in keys:
1088
- ret += "1" if key else "0"
1090
+ ret += "1" if key == lcn_defs.KeyLockStateModifier.ON else "0"
1089
1091
 
1090
1092
  return ret
1091
1093
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pypck
3
- Version: 0.8.11
3
+ Version: 0.8.12
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
@@ -11,7 +11,6 @@ pypck/lcn_addr.py
11
11
  pypck/lcn_defs.py
12
12
  pypck/module.py
13
13
  pypck/pck_commands.py
14
- pypck/py.typed
15
14
  pypck/request_handlers.py
16
15
  pypck/timeout_retry.py
17
16
  pypck.egg-info/PKG-INFO
@@ -38,9 +38,6 @@ version = {file = "VERSION"}
38
38
  [tool.setuptools.packages.find]
39
39
  include = ["pypck*"]
40
40
 
41
- [tool.setuptools.package-data]
42
- mypkg = ["py.typed"]
43
-
44
41
  [tool.black]
45
42
  target-version = ["py311", "py312", "py313"]
46
43
 
@@ -3,7 +3,6 @@
3
3
  from typing import Any
4
4
 
5
5
  import pytest
6
-
7
6
  from pypck.lcn_addr import LcnAddr
8
7
  from pypck.lcn_defs import (
9
8
  BeepSound,
@@ -466,7 +465,16 @@ COMMANDS: dict[str | bytes, Any] = {
466
465
  PckGenerator.lock_keys_tab_a_temporary,
467
466
  40,
468
467
  unit,
469
- [True, True, False, False, True, True, True, False],
468
+ [
469
+ KeyLockStateModifier.ON,
470
+ KeyLockStateModifier.ON,
471
+ KeyLockStateModifier.OFF,
472
+ KeyLockStateModifier.OFF,
473
+ KeyLockStateModifier.ON,
474
+ KeyLockStateModifier.ON,
475
+ KeyLockStateModifier.ON,
476
+ KeyLockStateModifier.OFF,
477
+ ],
470
478
  )
471
479
  for unit in TimeUnit
472
480
  },
pypck-0.8.11/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.8.11
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes