From f9fff5e2f830ea7073fad3b8f3fa86fb0979869d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 03:39:04 +0100 Subject: [PATCH] fixed rgb values 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 aff3da1..891d130 100644 --- a/client/main.py +++ b/client/main.py @@ -58,7 +58,7 @@ def is_connected_to_wifi(): return output.split('"')[1] def update_led_strip(rgb_values, pixel, strip): - strip[int(pixel)] = Color(rgb_values) + strip[int(pixel)] = tuple(rgb_values) def on_message(mqttc, obj, msg): if msg.topic == "tube-"+wlan_mac_address+"/p1":