Skip to content

Commit

Permalink
2.1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
jimboca committed Jun 6, 2020
1 parent 1e810af commit d6775de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ If you already have it installed and want the update before it's in the store.

## Release Notes

- 2.1.23: JImBo 06/06/2020
- Fix to not set auth status False when starting refresh
- 2.1.22: JimBo 06/05/2020
- Refresh token before it expires,
- Don't save tokenData in customData because it will increase PGC cost.
Expand Down
3 changes: 1 addition & 2 deletions ecobee-poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ def _checkTokens(self):
ts_exp = datetime.datetime.strptime(self.tokenData['expires'], '%Y-%m-%dT%H:%M:%S')
exp_d = ts_exp - ts_now
if exp_d.seconds < int(self.polyConfig['longPoll']) * 2:
self.l_info('_checkTokens','Tokens wil expire in {} seconds, so refreshing now...'.format(exp_d.seconds))
self.set_auth_st(False)
self.l_info('_checkTokens','Tokens will expire in {} seconds, so refreshing now...'.format(exp_d.seconds))
return self._getRefresh()
else:
self.l_debug('_checkTokens',0,'Tokens valid until: {} ({} seconds, longPoll={})'.format(self.tokenData['expires'],exp_d.seconds,int(self.polyConfig['longPoll'])))
Expand Down
2 changes: 1 addition & 1 deletion server.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"title": "ecobee: Polyglot NodeServer for Ecobee",
"author": "James Milne (Einstein.42)",
"version": "2.1.22",
"version": "2.1.23",
"date": "July 25, 2018",
"source": "https://github.com/Einstein42/udi-ecobee-poly",
"license": "https://github.com/Einstein42/udi-ecobee-poly/master/LICENSE"
Expand Down

0 comments on commit d6775de

Please sign in to comment.