Browse Source

[typo] missing parentheses

Maxime Alves LIRMM@home 3 years ago
parent
commit
7a7cb9caa7
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      pyheatpump/heatpump.py

+ 2
- 2
pyheatpump/heatpump.py View File

@@ -10,10 +10,10 @@ from pyheatpump.models import *
10 10
 def get_variable_values(request):
11 11
     res = {}
12 12
     if 'time' not in request.path_params.keys():
13
-        h = Heatpump(config.get('heatpump', 'mac_address', None))
13
+        h = Heatpump(config.get('heatpump', 'mac_address'))
14 14
     else:
15 15
         time = datetime.fromisoformat(request.params['time'])
16
-        h = Heatpump(config.get('heatpump', 'mac_address', request.params['time']))
16
+        h = Heatpump(config.get('heatpump', 'mac_address'), request.params['time'])
17 17
 
18 18
     return JSONResponse(h.__dict__())
19 19
 

Loading…
Cancel
Save