Browse Source

[heatpump] missing param last_update

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

+ 1
- 1
pyheatpump/heatpump.py View File

@@ -10,7 +10,7 @@ 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'))
13
+        h = Heatpump(config.get('heatpump', 'mac_address'), None)
14 14
     else:
15 15
         time = datetime.fromisoformat(request.params['time'])
16 16
         h = Heatpump(config.get('heatpump', 'mac_address'), request.params['time'])

Loading…
Cancel
Save