chore: apply recommended changes for merging

This commit is contained in:
Björn Otgaar
2025-10-28 11:05:27 +01:00
parent 31e77de26b
commit 149d20e77b
2 changed files with 3 additions and 3 deletions

View File

@@ -15,6 +15,6 @@ async def receive_command(command: SpeechCommand, request: Request):
SpeechCommand.model_validate(command)
topic = b"command"
pub_socket: Socket = request.app.state.internal_comm_socket
pub_socket.send_multipart([topic, command])
pub_socket.send_multipart([topic, command.model_dump_json().encode()])
return {"status": "Command received"}