Closed hauard closed 5 months ago
:wave: @hauard, it is checked whether there is a bug. Please have some patience. This action was performed automatically.
:wave: @hauard, we found the bug, it will be fixed shortly. This action was performed automatically.
Has this issue been resolved yet?
Has this issue been resolved yet?
Here it started working out of the blue, for one day, now I have the same error again.
Suspected some update made it work, but after it stopped working again, I don't think so, because I have not updated anything after it stopped working for the second time.
Soo, I dunno what "will be fixed shortly" means about the bug, but I hope to see some progress soon
Sorry, still getting what seems to be the same error, after the fix and update. Also tried to remove the integration from HACS, and adding it again, same error:
Denne feilen stammer fra en tilpasset integrasjon.
Logger: custom_components.xplora_watch.coordinator
Source: helpers/update_coordinator.py:300
Integration: Xplora® Watch (documentation, issues)
First occurred: 11:16:40 (5 occurrences)
Last logged: 11:17:56
Unexpected error fetching xplora_watch-186 data: invalid literal for int() with base 10: ''
Unexpected error fetching xplora_watch- data: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xplora_watch/coordinator.py", line 177, in async_update_xplora_data
watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xplora_watch/coordinator.py", line 191, in data_loop
res_chats = await self.controller.getWatchChatsRaw(wuid, limit=message_limit, show_del_msg=remove_message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyxplora_api/pyxplora_api_async.py", line 411, in getWatchChatsRaw
result = ChatsNew.from_dict(result.get("chatsNew", None))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 311, in _decode_generic
res = _decode_generic(type_arg, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 291, in _decode_generic
xs = _decode_items(_get_type_arg_param(type_, 0), value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 399, in _decode_items
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 399, in <genexpr>
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 372, in _decode_item
return _decode_dataclass(type_arg, x, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 309, in _decode_generic
res = _decode_dataclass(type_arg, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 313, in _decode_generic
res = _support_extended_types(type_arg, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 251, in _support_extended_types
else field_type(field_value))
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
FYI: Adding the non-admin user creates the units and chosen entities, without error, but doesn't seem update them. That issue is from Xplora securing the API I guess
@hauard I found the bug, I just can't test it, I would upload a beta in the coming days. Can you then check whether the problem is solved?
@hauard I found the bug, I just can't test it, I would upload a beta in the coming days. Can you then check whether the problem is solved?
Sure, no problem! Thanks for keeping the software updated ❤️
Hey Ludy87,
I downloaded the latest (?) build v2.13.2 but I'm also still getting these errors. Had it for weeks now.
Unexpected error fetching xplora_watch-20456 data: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xplora_watch/coordinator.py", line 177, in async_update_xplora_data
watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/xplora_watch/coordinator.py", line 191, in data_loop
res_chats = await self.controller.getWatchChatsRaw(wuid, limit=message_limit, show_del_msg=remove_message)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyxplora_api/pyxplora_api_async.py", line 423, in getWatchChatsRaw
result = ChatsNew.from_dict(result.get("chatsNew", None))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 311, in _decode_generic
res = _decode_generic(type_arg, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 291, in _decode_generic
xs = _decode_items(_get_type_arg_param(type_, 0), value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 399, in _decode_items
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 399, in <genexpr>
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 372, in _decode_item
return _decode_dataclass(type_arg, x, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 309, in _decode_generic
res = _decode_dataclass(type_arg, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 313, in _decode_generic
res = _support_extended_types(type_arg, value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/dataclasses_json/core.py", line 251, in _support_extended_types
else field_type(field_value))
^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
@Enkil666 try https://github.com/Ludy87/xplora_watch/tree/v2.13.3-beta
@Ludy87 Thanks for this. Unfortunately, I still can't start the integration and get the same error: "Unexpected error fetching xplora_watch-20456 data: invalid literal for int() with base 10: ''
I have removed the integration, added it again, updated to Home Assistant 2024.1.5, but still can't get it to work :(
Can you make sure it's the beta version?
Yes.
@Enkil666 could you test the new beta? Thanks
@Ludy87 I did and that did the trick. Thanks a lot for this!
What version of Integration has the issue?
V2.10.4
System Health details
Checklist
Describe the issue
Integration fails to start, getting "Integration loaded-"popup, but afterwards it says "Failed config, retrying."![image](https://github.com/Ludy87/xplora_watch/assets/112585314/23878c29-640e-43ee-a361-6d99035afadb)
Reproduction steps
Debug logs