@@ -102,7 +102,7 @@ def getParameter(key, default):
102
102
103
103
#TODO# Undocumented (but would be very usefull) API : Access currently forbidden (403)
104
104
105
- # _POST_UPDATE_HOME_REQ = _BASE_URL + "/api/updatehome"
105
+ _POST_UPDATE_HOME_REQ = _BASE_URL + "/api/updatehome"
106
106
107
107
# For presence setting (POST BODY):
108
108
# _PRES_BODY_REC_SET = "home_id=%s&presence_settings[presence_record_%s]=%s" # (HomeId, DetectionKind, DetectionSetup.index)
@@ -275,7 +275,7 @@ def __init__(self, authData, home=None):
275
275
resp = postRequest (_GETTHERMOSTATDATA_REQ , postParams )
276
276
self .rawData = resp ['body' ]['devices' ]
277
277
if not self .rawData : raise NoDevice ("No thermostat available" )
278
- self .thermostatData = filter_home_data (rawData , home )
278
+ self .thermostatData = filter_home_data (self . rawData , home )
279
279
if not self .thermostatData : raise NoHome ("No home %s found" % home )
280
280
self .thermostatData ['name' ] = self .thermostatData ['home_name' ]
281
281
for m in self .thermostatData ['modules' ]:
@@ -824,7 +824,7 @@ def getStationMinMaxTH(station=None, module=None, home=None):
824
824
r = devList .MinMaxTH (module = m )
825
825
result [m ] = (r [0 ], lastD [m ]['Temperature' ], r [1 ])
826
826
else :
827
- if time .time ()- lastD [mname ]['When' ] > 3600 : result = ["-" , "-" ]
827
+ if time .time ()- lastD [module ]['When' ] > 3600 : result = ["-" , "-" ]
828
828
else :
829
829
result = [lastD [module ]['Temperature' ], lastD [module ]['Humidity' ]]
830
830
result .extend (devList .MinMaxTH (module ))
0 commit comments