ソースを参照

[typo] missing parentheses

Maxime Alves LIRMM@home 3年前
コミット
7a7cb9caa7
1個のファイルの変更2行の追加2行の削除
  1. 2
    2
      pyheatpump/heatpump.py

+ 2
- 2
pyheatpump/heatpump.py ファイルの表示

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

読み込み中…
キャンセル
保存