Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add Integration (version f1d5810) #9

Closed
Wictorssons opened this issue May 26, 2020 · 3 comments
Closed

Unable to add Integration (version f1d5810) #9

Wictorssons opened this issue May 26, 2020 · 3 comments

Comments

@Wictorssons
Copy link

Hi!

The component is added via HACS. When trying to add the Integration Gardena Smart System from the GUI, I enter E-mail, Password and Application Key / Client ID and press Submit. Immediately, the form is emptied.

I see the following in the home-assistant.log:

2020-05-26 16:33:33 ERROR (SyncWorker_9) [gardena.smart_system] 403 : {'message': 'Forbidden'}
2020-05-26 16:33:33 ERROR (MainThread) [custom_components.gardena_smart_system.config_flow] Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/gardena_smart_system/config_flow.py", line 70, in async_step_user
user_input[CONF_CLIENT_ID])
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/config_flow.py", line 133, in try_connection
smart_system.update_locations()
File "/usr/local/lib/python3.7/site-packages/gardena/smart_system.py", line 157, in update_locations
if len(response_data["data"]) < 1:
KeyError: 'data'

Any idea what I might have missed?

@thecem
Copy link

thecem commented May 26, 2020

Did you restart HA? Which version of HA are you using?

@Wictorssons
Copy link
Author

Yes, running 0.110.3.
I saw just now that the same behaviour was mentioned in the issue named "Can´t find the Integration".

@Wictorssons
Copy link
Author

I made the same error as mentioned by bussio. I forgot to "Connect new API". After that it worked. Sorry about that! Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants