davidrapan / ha-solarman

⚡ Solarman Stick Logger integration for 🏠 Home Assistant
MIT License
110 stars 25 forks source link

Error setting up entry Sofar for solarman #86

Closed manuel833 closed 3 months ago

manuel833 commented 3 months ago

Logger: homeassistant.config_entries Quelle: config_entries.py:604 Erstmals aufgetreten: 14:56:07 (3 Vorkommnisse) Zuletzt protokolliert: 14:57:30

Error setting up entry Sofar for solarman Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solarman/init.py", line 72, in async_setup_entry await inverter.load(name, inverter_mac, lookup_path, lookup_file) File "/config/custom_components/solarman/api.py", line 80, in load self.profile = ParameterParser(self.parameter_definition) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solarman/parser.py", line 51, in init self._code = self._registers_table[0]


KeyError: 0 
davidrapan commented 3 months ago

Hi @manuel833, thanks for reporting this issue.

fix: ParameterParser KeyError during init

manuel833 commented 3 months ago

I have update all new files home-assistant_2024-08-16T14-33-54.877Z.log

davidrapan commented 3 months ago

You proly did not otherwise this would not happen:

NameError: name 'is_platform' is not defined

That method is located in the common.py

davidrapan commented 3 months ago

I suggest to you to completely replace content of the custom_components/solarman folder.

davidrapan commented 3 months ago

v24.08.16 beta (pre-release) fixes the issue.