|
@@ -227,7 +227,7 @@ def supervise(since):
|
227
|
227
|
|
228
|
228
|
get_path = '/'.join((
|
229
|
229
|
config.get('supervisor', 'get_path'),
|
230
|
|
- Heatpump(mac_address, 0).macformat
|
|
230
|
+ Heatpump(mac_address).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 Heatpump(mac_addres, 0).control(control_data):
|
|
243
|
+ if Heatpump(mac_addres).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:
|