From c6cf45ed3a62b894d2542ce1b005f4e6cff87a81 Mon Sep 17 00:00:00 2001 From: JimBo Date: Tue, 9 Apr 2019 15:34:49 -0700 Subject: [PATCH] 2.1.4 --- README.md | 2 ++ ecobee-poly.py | 4 ++++ server.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 442fac5..33273aa 100755 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ If you already have it installed and want the update before it's in the store. ## Release Notes +- 2.1.4: JimBo + - [Crash due to bad json returned from Ecobee](https://github.com/Einstein42/udi-ecobee-poly/issues/45) - 2.1.3: JimBo - More fixing flakey Ecobee servers. - 2.1.2: JimBo diff --git a/ecobee-poly.py b/ecobee-poly.py index 9854a32..34b3ffd 100755 --- a/ecobee-poly.py +++ b/ecobee-poly.py @@ -447,6 +447,10 @@ def getThermostats(self): res_data = res['data'] res_code = res['code'] if 'revisionList' in res_data: + if res_data['revisionList'] is False: + self.l_error('getThermostats','revisionList is False.') + self.set_ecobee_st(False) + return False for thermostat in res_data['revisionList']: revisionArray = thermostat.split(':') thermostats['{}'.format(revisionArray[0])] = { diff --git a/server.json b/server.json index 3358b45..9eef554 100755 --- a/server.json +++ b/server.json @@ -14,7 +14,7 @@ { "title": "ecobee: Polyglot NodeServer for Ecobee", "author": "James Milne (Einstein.42)", - "version": "2.1.3", + "version": "2.1.4", "date": "July 25, 2018", "source": "https://github.com/Einstein42/udi-ecobee-poly", "license": "https://github.com/Einstein42/udi-ecobee-poly/master/LICENSE"