From 35232f2758694aaa929beee92a45d533cc862997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 13:51:41 +0100 Subject: [PATCH] eval from str to list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- client/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.py b/client/main.py index d346085..97b89b8 100644 --- a/client/main.py +++ b/client/main.py @@ -64,7 +64,7 @@ def update_led_strip(rgb_values, pixel, strip): def on_message(mqttc, obj, msg): rgb_values_list = msg.payload.decode() - print(rgb_values_list) + print(eval(rgb_values_list)) time.sleep(1)