Browse Source

[cli] set_last_update uniquement à la fin de supervise

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

+ 0
- 2
pyheatpump/cli.py View File

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

Loading…
Cancel
Save