philippelt / netatmo-api-python

Netatmo connect API python client (for Netatmo information, see https://dev.netatmo.com)
GNU General Public License v3.0
191 stars 120 forks source link

KeyError: 'home_name' #63

Closed JurgenLB closed 10 months ago

JurgenLB commented 1 year ago

I was testing your python script with my Thermostat and got a KeyError: 'home_name' on line 308 self.thermostatData['name'] = self.thermostatData['home_name'] and line 311 self.defaultThermostat = self.thermostatData['home_name']

I changed it to ['station_name'] and now it give no Error's more. This is the name for the Relaisstation, Was this the intended "name" or do you mean the name of the thermostat ?

I see another reference on line 350 but I think there it is OK

philippelt commented 1 year ago

I am currently overloaded, I will try to find some free time in the coming weeks.

Sorry for the delay

JurgenLB commented 1 year ago

That's OK Take Your Time, I notice that getthermostatsdata is from the OLD API So that's a bigger change than I first thought

Kind regards

JurgenLB commented 10 months ago

this is resolved in #71