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':