ha-sunspec
ha-sunspec copied to clipboard
TypeError: 'SunSpecModbusClientGroup' object is not iterable
Version of the custom_component
sunspec 0.0.25 Home Assistant 2024.5.2
Configuration
Describe the bug
I have a SMA Sunny Tripower X 25 and installed everything the first time. No entities are showing up on my HA instance.
Debug log
Logger: homeassistant.components.sensor
Quelle: helpers/entity_platform.py:356
Integration: Sensor ([Dokumentation](https://www.home-assistant.io/integrations/sensor), [Probleme](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+sensor%22))
Erstmals aufgetreten: 14:53:19 (2 Vorkommnisse)
Zuletzt protokolliert: 15:07:07
Error while setting up sunspec platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/sunspec/sensor.py", line 87, in async_setup_entry
for key in model_wrapper.getKeys():
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sunspec/api.py", line 45, in getKeys
for idx, group in enumerate(self._models[0].groups[group_name]):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'SunSpecModbusClientGroup' object is not iterable