adrigzr / badconga

Deprecated plugin for Home Assistant for Cecotec Conga Vacuums.
27 stars 4 forks source link

Uncaught thread exception #8

Open HektorB opened 3 years ago

HektorB commented 3 years ago

Logger: root Source: custom_components/badconga/app/socket.py:28 First occurred: 12:13:54 (1 occurrences) Last logged: 12:13:54 Uncaught thread exception

Traceback (most recent call last): File "/usr/local/lib/python3.8/threading.py", line 932, in _bootstrap_inner self.run() File "/usr/local/lib/python3.8/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/config/custom_components/badconga/app/conga.py", line 51, in on_logout self.loop() File "/config/custom_components/badconga/app/conga.py", line 30, in loop return self.client.login(self.email, self.password) File "/config/custom_components/badconga/app/client.py", line 194, in login self.socket.connect() File "/config/custom_components/badconga/app/socket.py", line 28, in connect self.sock.connect((self.host, self.port)) TimeoutError: [Errno 110] Operation timed out

I get that error from the Home Assistant log. My solution proposal is to catch that error and retry the connect call until the connection is successfully established.

zzarne commented 3 years ago

Should be fixed now with #18. It would be nice if you could report your model code (from the vacuum.conga entity) and model name after updating.