Browse Source

[supervise] fix heatpump reference

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

+ 2
- 2
pyheatpump/cli.py View File

@@ -227,7 +227,7 @@ def supervise(since):
227 227
 
228 228
     get_path = '/'.join((
229 229
         config.get('supervisor', 'get_path'),
230
-        h.macformat
230
+        Heatpump(mac_address, 0).macformat
231 231
     ))
232 232
     get_url = {
233 233
         **base_url,
@@ -240,7 +240,7 @@ def supervise(since):
240 240
     )
241 241
 
242 242
     control_data = get_resp.json()
243
-    if h.control(control_data):
243
+    if Heatpump(mac_addres, 0).control(control_data):
244 244
         logger.info('GET to supervisor succeded : updated values')
245 245
         set_last_update(int(datetime.now().strftime('%s')))
246 246
     else:

Loading…
Cancel
Save