added pcdu with trait implementation of power switcher

This commit is contained in:
lkoester committed 2023-02-07 16:44:01 +01:00
1 parent 27790242b0
commit cc1a0e09e4
2 files changed
+1 -1

No files matched your search

+1 -1
View File
@@ -218,7 +218,7 @@ def make_target_id(target_id: int) -> bytes:
byte_string = bytearray(struct.pack("!I", target_id))
return byte_string
def read_addressable_id(data: bytes) -> Tuple[int, int]:
def read_addressable_id(data: bytes) -> tuple[int, int]:
target_id = struct.unpack("!I", data[0:4])[0]
set_id = struct.unpack("!I", data[4:8])[0]
return (target_id, set_id)
View File
Whitespace-only changes.