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

Homeassistant Update 2024.12.4 fails due to gardena-smart-system #234

Open
tomatenkopp opened this issue Dec 18, 2024 · 2 comments
Open

Comments

@tomatenkopp
Copy link

The recent update tu 2024.12.4 fails, obviusly due to an error in gardena-smart-systemintegration.
As a result, Homeassistant does a proper rollback to 2024.12.3

last entry in home-assistant-rollback.log before doing the rollback:
....
RuntimeError: Detected that custom integration 'gardena_smart_system' calls hass.async_create_task from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassasync_create_task at custom_components/gardena_smart_system/init.py, line 65: hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, lambda event: hass.async_create_task(gardena_system.stop())). Please report it to the author of the 'gardena_smart_system' custom integration
2024-12-18 11:15:13.716 WARNING (MainThread) [py.warnings] /usr/src/homeassistant/homeassistant/core.py:1015: RuntimeWarning: coroutine 'GardenaSmartSystem.stop' was never awaited
while tasks := [

2024-12-18 11:15:19.575 WARNING (MainThread) [homeassistant.runner] Task could not be canceled and was still running after shutdown: <Task cancelling name='Task-209' coro=<SmartSystem.start_ws() running at /usr/local/lib/python3.13/site-packages/gardena/smart_system.py:198> wait_for=>

@nd2000
Copy link

nd2000 commented Dec 19, 2024

Same here:
home-assistant.log

@oliskippy
Copy link

The update worked on my side but probably because I was not connected to the Gardena service. This is my new issue, after good connexions for months, no chance anymore since beginning of December. I tried to reconnect after updating the keys, etc. No chance.
The integration became useless.

`Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 17:50:48 (1 occurrences)
Last logged: 17:50:48

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

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
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 87, in start
await self.smart_system.update_locations()
File "/usr/local/lib/python3.13/site-packages/gardena/smart_system.py", line 146, in update_locations
response_data = await self.__call_smart_system_get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"{self.SMART_HOST}/v1/locations"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.13/site-packages/backoff/_async.py", line 183, in retry
await asyncio.sleep(seconds)
File "/usr/local/lib/python3.13/asyncio/tasks.py", line 718, 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

3 participants