From a0996112fc451b76448589698de440ad5fd6ea79 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Mon, 6 Aug 2018 19:15:13 +0200 Subject: [PATCH] Retour du JSON uniquement --- tplink_smartplug.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tplink_smartplug.py b/tplink_smartplug.py index 4012a55..8b76224 100755 --- a/tplink_smartplug.py +++ b/tplink_smartplug.py @@ -96,8 +96,7 @@ try: data = sock_tcp.recv(2048) sock_tcp.close() - print "Sent: ", cmd - print "Received: ", decrypt(data[4:]) + print decrypt(data[4:]) except socket.error: quit("Cound not connect to host " + ip + ":" + str(port))