eval from str to list

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 13:51:41 +01:00
parent dca81021bd
commit 35232f2758
1 changed files with 1 additions and 1 deletions

View File

@ -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)