MTrab / landroid_cloud

Landroid Cloud component for Home Assistant
GNU General Public License v3.0
260 stars 30 forks source link

Landroid Cloud Sync #298

Closed HomeEric closed 1 year ago

HomeEric commented 1 year ago

Environment:

Home Assistant 2023.2.5 Supervisor 2023.01.1 Operating System 9.5 Frontend 20230202.0 - latest

Describe the bug

Debug log

`- ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Landxcape - xxxx@xxxx for landroid_cloudr File "/config/custom_components/landroid_cloud/init.py", line 64, in async_setup_entry File "/config/custom_components/landroid_cloud/init.py", line 208, in _async_setup

copadewe commented 1 year ago

Same here: Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: homeassistant.config_entries Source: custom_components/landroid_cloud/init.py:208 Integration: Landroid Cloud (documentation, issues) First occurred: 17. Februar 2023 um 15:04:34 (8 occurrences) Last logged: 11:53:44

Error setting up entry Worx - xxxxxx@gmail.com for landroid_cloud Error setting up entry Worx - xxxxxx@gmail.com for landroid_cloud Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pyworxcloud/api.py", line 226, in _call req.raise_for_status() File "/usr/local/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.worxlandroid.com/api/v2/users/certificate

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 382, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/landroid_cloud/init.py", line 64, in async_setup_entry result = await _async_setup(hass, entry) File "/config/custom_components/landroid_cloud/init.py", line 208, in _async_setup await hass.async_add_executor_job(cloud.connect, False, False) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/site-packages/pyworxcloud/init.py", line 269, in connect with self._get_cert() as cert: File "/usr/local/lib/python3.10/contextlib.py", line 135, in enter return next(self.gen) File "/usr/local/lib/python3.10/site-packages/pyworxcloud/init.py", line 324, in _get_cert certresp = self._api.get_cert() File "/usr/local/lib/python3.10/site-packages/pyworxcloud/api.py", line 135, in get_cert calldata = self._call("/users/certificate") File "/usr/local/lib/python3.10/site-packages/pyworxcloud/api.py", line 236, in _call raise NotFoundError() pyworxcloud.exceptions.NotFoundError

MTrab commented 1 year ago

Duplicate of #282