improvement

This commit is contained in:
Robin Müller 2021-09-07 16:10:40 +02:00
parent 96346461b4
commit eb8d52607b
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ def pack_pdu1_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str):
if op_code == Pdu1OpCodes.PRINT_SWITCH_STATE.value: if op_code == Pdu1OpCodes.PRINT_SWITCH_STATE.value:
tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Print Switch Status")) tc_queue.appendleft((QueueCommands.PRINT, "PDU1: Print Switch Status"))
command = generate_action_command( command = generate_action_command(
object_id=object_id, action_id=int(Pdu1OpCodes.PRINT_SWITCH_STATE.value) object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_STATE
) )
tc_queue.appendleft(command.pack_command_tuple()) tc_queue.appendleft(command.pack_command_tuple())

View File

@ -62,7 +62,7 @@ def pack_pdu2_test_into(object_id: bytearray, tc_queue: TcQueueT, op_code: str)
if op_code == Pdu2OpCodes.PRINT_SWITCH_STATE.value: if op_code == Pdu2OpCodes.PRINT_SWITCH_STATE.value:
tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Print Switch Status")) tc_queue.appendleft((QueueCommands.PRINT, "PDU2: Print Switch Status"))
command = generate_action_command( command = generate_action_command(
object_id=object_id, action_id=int(Pdu2OpCodes.PRINT_SWITCH_STATE.value) object_id=object_id, action_id=GomspaceDeviceActionIds.PRINT_SWITCH_STATE
) )
tc_queue.appendleft(command.pack_command_tuple()) tc_queue.appendleft(command.pack_command_tuple())