Bläddra i källkod

[typo] missing parentheses

Maxime Alves LIRMM@home 3 år sedan
förälder
incheckning
7a7cb9caa7
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      pyheatpump/heatpump.py

+ 2
- 2
pyheatpump/heatpump.py Visa fil

@@ -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…
Avbryt
Spara