Version 0.51 just won’t work for me at all while the beta is just perfect.
I found this in the 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’: ‘215’, ‘articleNumber’: ‘0020260962’, ‘codes’: []}, {‘serialNumber’: ‘215’, ‘articleNumber’: ‘0020260914’, ‘codes’: []}, {‘serialNumber’: ‘212N8’, ‘articleNumber’: ‘0010022066’, ‘codes’: []}, {‘serialNumber’: ‘212N1’, ‘articleNumber’: ‘0010021117’, ‘codes’: []}, {‘serialNumber’: ‘2129’, ‘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’: ‘212N5’, ‘articleNumber’: ‘0020260962’, ‘codes’: []}, {‘serialNumber’: ‘2125’, ‘articleNumber’: ‘0020260914’, ‘codes’: []}, {‘serialNumber’: ‘218’, ‘articleNumber’: ‘0010022066’, ‘codes’: []}, {‘serialNumber’: '21, ‘articleNumber’: ‘0010021117’, ‘codes’: []}, {‘serialNumber’: ‘21230300201848460082010188N9’, ‘articleNumber’: ‘0020184846’, ‘codes’: []}]” of type “list”