Browse Source

[route][config] fix set_routes

Maxime Alves LIRMM@home 4 years ago
parent
commit
b62b274d58
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      pyheatpump/config.py

+ 1
- 3
pyheatpump/config.py View File

@@ -85,9 +85,7 @@ async def get_config(request):
85 85
 
86 86
 
87 87
 async def set_config(request):
88
-    body = await request.json()
89
-    d_body = json.loads(body)
90
-    #return PlainTextResponse(body)
88
+    d_body = await request.json()
91 89
 
92 90
     for sect in d_body.keys():
93 91
         if type(d_body[sect]) is not dict:

Loading…
Cancel
Save