py-smart-gardena / hass-gardena-smart-system

Home Assistant custom component integration for Gardena Smart System
Apache License 2.0
213 stars 53 forks source link

Error by Setup Client id #219

Open nyunity opened 4 months ago

nyunity commented 4 months ago

Hi all, I created an Account and activated it. When I try to Login at HA with my Client Id and the Passwort, in the log I get These Error:

Logger: homeassistant.config_entries Quelle: config_entries.py:586 Erstmals aufgetreten: 16:05:16 (1 Vorkommnisse) Zuletzt protokolliert: 16:05:16

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 586, 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

And other one:

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: gardena.smart_system Quelle: custom_components/gardena_smart_system/init.py:86 Integration: Gardena Smart System integration (Dokumentation, Probleme) Erstmals aufgetreten: 16:04:22 (7 Vorkommnisse) Zuletzt protokolliert: 16:04:43

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

Can someone help? Made I something wrong?

Thx

mese16 commented 1 month ago

Exact same problem for me