mypyllant-component: Integration no longer loads any Data (Version 0.51)
Before submitting a new issue
- I’m not using the older Vaillant sensoAPP (which is unsupported by this integration)
- I redownloaded the latest release and restarted Home Assistant
- I’ve enabled debug logs and attached the relevant logs to this ticket
Problem description
Beta Version of 0.50 worked fine, both the final 0.50 and the 0.51 no longer show any entities or data
Logs
2023-10-07 10:14:59.818 ERROR (MainThread) [custom_components.mypyllant] Unexpected error fetching myVAILLANT data: wrong value type for field “diagnostic_trouble_codes” - should be “list[dict] | None” instead of value “[{‘serialNumber’: ‘212’, ‘articleNumber’: ‘0020260962’, ‘codes’: []}, {‘serialNumber’: ‘212’, ‘articleNumber’: ‘0020260914’, ‘codes’: []}, {‘serialNumber’: ‘21230700100220663100007011N8’, ‘articleNumber’: ‘0010022066’, ‘codes’: []}, {‘serialNumber’: ‘212’, ‘articleNumber’: ‘0010021117’, ‘codes’: []}, {‘serialNumber’: ‘212’, ‘articleNumber’: ‘0020184846’, ‘codes’: []}]” of type “list”
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py”, line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/config/custom_components/mypyllant/init.py”, line 173, in _async_update_data
data = [
^
File “/config/custom_components/mypyllant/init.py”, line 173, in
data = [
^
File “/usr/local/lib/python3.11/site-packages/myPyllant/api.py”, line 283, in get_systems
system = System.from_api(
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/myPyllant/models.py”, line 198, in from_api
system: System = super().from_api(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/myPyllant/models.py”, line 85, in from_api
return from_dict(
^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/dacite/core.py”, line 68, in from_dict
if config.check_types and not is_instance(value, field_type):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dacite.exceptions.WrongTypeError: wrong value type for field “diagnostic_trouble_codes” - should be “list[dict] | None” instead of value “[{‘serialNumber’:
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (9 by maintainers)
I was having the exact same issue and it turned out the HACS Govee integration was to blame in my case as well. However, since I need it to control my LED strips until I can get new LAN-supported ones, I tried a solution I found in an issue thread for the Govee integration itself, which is to force the integration to install dacite 1.7.0.
It’s really simple, just edit the file as shown in the screenshot in this comment, but put 1.7.0 instead of 1.8.1: https://github.com/LaggAt/hacs-govee/issues/108#issuecomment-1790824855