Open totalitarian opened 5 months ago
Hi I am getting error as well but mine is little different:
Source: config_entries.py:504
First occurred: 00:11:56 (1 occurrences)
Last logged: 00:11:56
Error setting up entry xxxxx@xxxx.com for lightwave_smart
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 504, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/lightwave_smart/__init__.py", line 86, in async_setup_entry
connected = await link.async_connect(max_tries = 1, force_keep_alive_secs=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/lightwave_smart/lightwave_smart.py", line 797, in async_connect
return await self._ws.async_connect(max_tries, force_keep_alive_secs)
^^^^^^^^
AttributeError: 'LWLink2Public' object has no attribute '_ws'
I have just fixed my error by just added
File "/config/custom_components/lightwave_smart/__init__.py", line 86, in async_setup_entry
connected = await link.async_connect(max_tries = 1, force_keep_alive_secs=0)
->>
File "/config/custom_components/lightwave_smart/__init__.py", line 86, in async_setup_entry
connected = await link.async_connect(max_tries = 1, force_keep_alive_secs=30)
so by every 30 sec with will check then 0 sec
Hi, will try to reproduce this issue locally and revert back here.
Hi, I get this error every day. Only way to fix it seems to be to delete the component and re-add each time. Any ideas?