Pho3niX90 / solis_modbus

Home Assistant HACS integration for Solis inverters
26 stars 5 forks source link

Errors in logs #76

Closed miketarg closed 1 month ago

miketarg commented 1 month ago

''' This error originated from a custom integration.

Logger: homeassistant Source: custom_components/solis_modbus/sensor.py:933 integration: Solis Modbus (documentation, issues) First occurred: 2:01:19 AM (8 occurrences) Last logged: 2:03:03 AM

Error doing job: _GatheringFuture exception was never retrieved (None) Traceback (most recent call last): File "/usr/local/lib/python3.12/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, *self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/solis_modbus/sensor.py", line 933, in update self._attr_native_value = n_value self._display_multiplier


TypeError: unsupported operand type(s) for *: 'coroutine' and 'int' '''

''' This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/solis_modbus/sensor.py:696
integration: Solis Modbus (documentation, issues)
First occurred: 2:01:19 AM (7 occurrences)
Last logged: 2:02:54 AM

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
  File "/config/custom_components/solis_modbus/sensor.py", line 696, in get_modbus_updates
    for i, value in enumerate(values):
                    ^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable '''

**To Reproduce**
Just using it (its works but with these two errors
**Expected behavior**
not to have errors

Im using a solis 5g inverter if that helps model #12548 Please let me know if you need anythign else?