Closed plaetzchen closed 1 year ago
Sorry but same issue, even with a delete a re-setup
It can't be the same error, the lib now checks if an entry is present, which was not the case before.
Updated debug log
2023-06-19 17:50:23.799 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:50:33.721 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2023-06-19 17:50:38.847 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:51:04.110 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:51:51.324 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:53:16.231 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:53:23.744 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2023-06-19 17:54:13.752 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2023-06-19 17:54:41.405 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:56:06.490 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:57:31.424 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:58:33.795 WARNING (MainThread) [homeassistant.components.camera] Updating xiaomi_cloud_map_extractor camera took longer than the scheduled update interval 0:00:05
2023-06-19 17:58:56.369 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 17:59:15.264 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'use_colors' is undefined when rendering '{{ not use_colors }}'
2023-06-19 17:59:15.286 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'unit_of_measurement' when rendering '{% if bfriendly %}
{{trigger.to_state.attributes.friendly_name}}: {{trigger.to_state.state}} {{trigger.to_state.attributes.unit_of_measurement}}
{% else %}
{{trigger.to_state.state}} {{trigger.to_state.attributes.unit_of_measurement}}
{% endif %}'
2023-06-19 18:00:21.406 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
2023-06-19 18:00:23.749 ERROR (MainThread) [homeassistant.components.luftdaten] Error fetching luftdaten_50549 data: Unable to retrieve data from Sensor.Community
2023-06-19 18:01:46.363 ERROR (MainThread) [custom_components.ecotrend_ista.coordinator] Unexpected error fetching ecotrend_ista-c343d1fceed0ec2a55ebcc44f8ce2d59 data: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/ecotrend_ista/coordinator.py", line 58, in _async_update_data
await self.controller.consum_raw(select_year=[datetime.datetime.now().year])
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 49, in wrapper
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 329, in consum_raw
for i, costs in enumerate(c_raw.get("costs", None)):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Getting this message, no entities are created after setup through the UI. Attached you can find the debug log.
Home Assistant 2023.6.2 Supervisor 2023.06.2 Operating System 10.3 Frontend 20230608.0 - latest