|
@@ -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
|
|