diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 05ad98d..9b5a0ef 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -107,8 +107,8 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, val = GPIO.input(pin) if not rpi_output['activeLow'] else (not GPIO.input(pin)) if getOutputStatusresult: getOutputStatusresult = getOutputStatusresult + ', ' - getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '":' + str(val) - return flask.jsonify('{' + getOutputStatusresult + '}') + getOutputStatusresult = getOutputStatusresult + '"' + str(pin) + '": ' + str(val) + return '{' + getOutputStatusresult + '}' @octoprint.plugin.BlueprintPlugin.route("/getTest", methods=["GET"])