|
@@ -199,7 +199,6 @@ def supervise(since):
|
199
|
199
|
control_data = get_resp.json()
|
200
|
200
|
if Heatpump(mac_address).control(control_data):
|
201
|
201
|
logger.info('GET to supervisor succeded : updated values')
|
202
|
|
- set_last_update(int(datetime.now().strftime('%s')))
|
203
|
202
|
else:
|
204
|
203
|
logger.warn('Unable to set data from supervisor\n{}'.format(control_data))
|
205
|
204
|
|
|
@@ -237,4 +236,3 @@ def supervise(since):
|
237
|
236
|
logger.info('POST to supervisor failed')
|
238
|
237
|
|
239
|
238
|
set_last_update(int(datetime.now().strftime('%s')))
|
240
|
|
-
|