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

Initialization failed #205

Open
t077584 opened this issue Apr 16, 2024 · 0 comments
Open

Initialization failed #205

t077584 opened this issue Apr 16, 2024 · 0 comments

Comments

@t077584
Copy link

t077584 commented Apr 16, 2024

Hi
I can't get the integration work, even though I followed the instruction given. Would appreciate some guidance on how to solve this. Log states the following:

This error originated from a custom integration.

Logger: gardena.smart_system
Source: custom_components/gardena_smart_system/init.py:86
integration: Gardena Smart System integration (documentation, issues)
First occurred: April 12, 2024 at 15:36:54 (16 occurrences)
Last logged: 12:19:49

404 : {r['errors'][0]['title']} - {r['errors'][0]['detail']}

And the other log:

Logger: homeassistant.config_entries
Source: config_entries.py:551
First occurred: April 12, 2024 at 15:41:51 (2 occurrences)
Last logged: 12:20:08

Error setting up entry for gardena_smart_system
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 151, in retry
ret = await target(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gardena/smart_system.py", line 141, in __call_smart_system_get
if self.__response_has_errors(response):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/gardena/smart_system.py", line 131, in __response_has_errors
response.raise_for_status()
File "/usr/local/lib/python3.12/site-packages/httpx/_models.py", line 761, in raise_for_status
raise HTTPStatusError(message, request=request, response=self)
httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://api.smart.gardena.dev/v1/locations'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/gardena_smart_system/init.py", line 49, in async_setup_entry
await gardena_system.start()
File "/config/custom_components/gardena_smart_system/init.py", line 86, in start
await self.smart_system.update_locations()
File "/usr/local/lib/python3.12/site-packages/gardena/smart_system.py", line 146, in update_locations
response_data = await self.__call_smart_system_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/backoff/_async.py", line 183, in retry
await asyncio.sleep(seconds)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError: Global task timeout

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

1 participant