Pho3niX90 / solis_modbus

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

After installed the 1.5.2 update my Inverter failed to come back up with the following:- #78

Closed miketarg closed 1 month ago

miketarg commented 1 month ago

Logger: homeassistant.config_entries Source: config_entries.py:604 First occurred: 8:09:30 AM (2 occurrences) Last logged: 8:12:50 AM

Error setting up entry Solis: 192.168.0.83 for solis_modbus Traceback (most recent call last): File "/config/custom_components/solis_modbus/modbus_controller.py", line 25, in connect raise _LOGGER.warning( TypeError: exceptions must derive from BaseException

During handling of the above exception, another exception occurred:

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/solis_modbus/init.py", line 65, in async_setup_entry await controller.connect() File "/config/custom_components/solis_modbus/modbus_controller.py", line 32, in connect raise _LOGGER.error(f"Failed to connect to Modbus device. Will retry") TypeError: exceptions must derive from BaseException

I had to system restore to my backup then it works fine.

0rangutan commented 1 month ago

I have the same issue here, broken on 1.5.2

Pho3niX90 commented 1 month ago

reverted the problematic code in 1.5.3 until it can be tested.

miketarg commented 1 month ago

Wait . . . Wasn't it tested before you pushed it out?