From 4a87b1b1e745431179ea219f6c95965673d636f6 Mon Sep 17 00:00:00 2001 From: yohan <783b8c87@scimetis.net> Date: Mon, 3 Jun 2024 00:54:47 +0200 Subject: [PATCH] Continue Flask migration. --- thermostat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thermostat.py b/thermostat.py index fb9dcfa..76f9f09 100644 --- a/thermostat.py +++ b/thermostat.py @@ -205,6 +205,8 @@ class Set_mode_thermostat(Resource): logging.error(e) return "K0", 400 new_forced_mode = data.value + xprint(data) + xprint(new_forced_mode) return "OK", 201 @ns_thermostat.route('/status') @@ -226,7 +228,6 @@ class Set_verbosity_thermostat(Resource): @auth_required @api.expect(Set_verbosity_model, validate=True) def put(self): - xprint(api.payload) if api.payload["value"] == 'DEBUG': logging.getLogger().setLevel(logging.DEBUG) elif api.payload["value"] == 'INFO':