Continue Flask migration.
This commit is contained in:
parent
d78296774d
commit
ed602a8abc
@ -218,13 +218,10 @@ class Set_verbosity_thermostat(Resource):
|
|||||||
@auth_required
|
@auth_required
|
||||||
@api.expect(Set_verbosity_model, validate=True)
|
@api.expect(Set_verbosity_model, validate=True)
|
||||||
@api.marshal_with(Set_verbosity_model)
|
@api.marshal_with(Set_verbosity_model)
|
||||||
def put(self, value):
|
def put(self):
|
||||||
print(api.payload)
|
print(api.payload)
|
||||||
print(value)
|
|
||||||
return "OK", 201
|
return "OK", 201
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
api.add_namespace(ns_thermostat)
|
api.add_namespace(ns_thermostat)
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
Loading…
Reference in New Issue
Block a user