pypck 0.9.1__tar.gz → 0.9.2__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.
- {pypck-0.9.1/pypck.egg-info → pypck-0.9.2}/PKG-INFO +1 -1
- pypck-0.9.2/VERSION +1 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/module.py +4 -1
- {pypck-0.9.1 → pypck-0.9.2}/pypck/pck_commands.py +4 -2
- {pypck-0.9.1 → pypck-0.9.2/pypck.egg-info}/PKG-INFO +1 -1
- {pypck-0.9.1 → pypck-0.9.2}/pypck.egg-info/SOURCES.txt +0 -1
- {pypck-0.9.1 → pypck-0.9.2}/pyproject.toml +0 -3
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_commands.py +10 -2
- pypck-0.9.1/VERSION +0 -1
- pypck-0.9.1/pypck/py.typed +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/LICENSE +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/README.md +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/__init__.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/connection.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/helpers.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/inputs.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/lcn_addr.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck/lcn_defs.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck.egg-info/dependency_links.txt +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck.egg-info/not-zip-safe +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/pypck.egg-info/top_level.txt +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/setup.cfg +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_connection.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_dyn_text.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_input.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_messages.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_module.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_status_requester.py +0 -0
- {pypck-0.9.1 → pypck-0.9.2}/tests/test_vars.py +0 -0
pypck-0.9.2/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.9.2
|
|
@@ -699,7 +699,10 @@ class AbstractConnection:
|
|
|
699
699
|
)
|
|
700
700
|
|
|
701
701
|
async def lock_keys_tab_a_temporary(
|
|
702
|
-
self,
|
|
702
|
+
self,
|
|
703
|
+
delay_time: int,
|
|
704
|
+
delay_unit: lcn_defs.TimeUnit,
|
|
705
|
+
states: list[lcn_defs.KeyLockStateModifier],
|
|
703
706
|
) -> bool:
|
|
704
707
|
"""Send a command to lock keys in table A temporary.
|
|
705
708
|
|
|
@@ -1048,7 +1048,9 @@ class PckGenerator:
|
|
|
1048
1048
|
|
|
1049
1049
|
@staticmethod
|
|
1050
1050
|
def lock_keys_tab_a_temporary(
|
|
1051
|
-
time: int,
|
|
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
|
|
|
@@ -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
|
-
[
|
|
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.9.1/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.9.1
|
pypck-0.9.1/pypck/py.typed
DELETED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|