From 507b15ed725901fb698bc35f1e2f9e3b4efce574 Mon Sep 17 00:00:00 2001 From: "karl.hudgell" Date: Tue, 26 Oct 2021 16:58:10 +0100 Subject: [PATCH] json --- server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index e6c2d8b..83eab25 100644 --- a/server.py +++ b/server.py @@ -25,12 +25,12 @@ def run_bulb_action(value): @app.route("/on") def on(): - return run_bulb_action("cc2333") + return {run_bulb_action("cc2333")} @app.route("/off") def off(): - return run_bulb_action("cc2433") + return {run_bulb_action("cc2433")} @app.route("/colour") @@ -42,4 +42,4 @@ def colour(): hex = rgb2hex(r, g, b) hex = hex.replace("#", "") value = "56" + hex + "00f0aa" - return run_bulb_action(value) + return {run_bulb_action(value)}