You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023-12-06 15:15:34 INFO Got homestatus response(200): {"status":"ok","time_server":1701875734,"body":{"home":{"id":"???"},"errors":[
{"code":6,"id":"???"},{"code":6,"id":"???"}]}} ???
2023-12-06 15:15:34 ERROR Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./app.py", line 170, in handleAdminPageRequest
'netatmo': getNetatmoTemp(conn, config),
File "./app.py", line 58, in getNetatmoTemp
return getNetatmoTemp(conn, config, True)
File "./app.py", line 48, in getNetatmoTemp
for roomData in jsonPayload['body']['home']['rooms']:
KeyError: 'rooms'
App.py needs to properly handle error codes returned by Netatmo api.
The text was updated successfully, but these errors were encountered:
Script crashes with:
2023-12-06 15:15:34 INFO Got homestatus response(200): {"status":"ok","time_server":1701875734,"body":{"home":{"id":"???"},"errors":[
{"code":6,"id":"???"},{"code":6,"id":"???"}]}} ???
2023-12-06 15:15:34 ERROR Exception on / [GET]
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/python3/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/lib/python3/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/lib/python3/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/python3/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "./app.py", line 170, in handleAdminPageRequest
'netatmo': getNetatmoTemp(conn, config),
File "./app.py", line 58, in getNetatmoTemp
return getNetatmoTemp(conn, config, True)
File "./app.py", line 48, in getNetatmoTemp
for roomData in jsonPayload['body']['home']['rooms']:
KeyError: 'rooms'
App.py needs to properly handle error codes returned by Netatmo api.
The text was updated successfully, but these errors were encountered: