netatmo-api-python icon indicating copy to clipboard operation
netatmo-api-python copied to clipboard

Error connection

Open kurb77 opened this issue 1 year ago • 4 comments

Hello, for a few days I can no longer connect to the API. Anything to change? I am using a version of the lnetatmo API that is not up to date, is that why? Thanks

code=400, reason=, body=b'{"error":"invalid_grant"}' Traceback (most recent call last): File "/home/domoticz/myscript/netatmo.py", line 69, in <module> thermostat = lnetatmo.ThermostatData(authorization) File "/myscript/lnetatmo.py", line 357, in __init__ self.getAuthToken = authData.accessToken File "/myscript/lnetatmo.py", line 241, in accessToken if self.expiration < time.time() : self.renew_token() File "/myscript/lnetatmo.py", line 252, in renew_token if self.refreshToken != resp['refresh_token']: TypeError: 'NoneType' object is not subscriptable

kurb77 avatar Dec 25 '24 18:12 kurb77