wills106 / homeassistant-solax-modbus

SolaX Power Modbus custom_component for Home Assistant (Supports some Ginlong Solis, Growatt, Sofar Solar, TIGO TSI & Qcells Q.Volt Hyb)
281 stars 85 forks source link

[Bug]: 'Solax' - 'G4 X1 Hybrid' A number of sensors are showing as unavailable and have error related to blocking call #900

Closed UK-JustinSmall closed 1 month ago

UK-JustinSmall commented 1 month ago

Describe the bug

Log Details (WARNING) Logger: homeassistant.util.loop Source: util/loop.py:99 First occurred: 10:35:19 (1 occurrences) Last logged: 10:35:19

Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module( (offender: /config/custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module(), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues

Additionally following entities have become unavailable after upgrading past 2024.04.2 so cannot upgrade past this version number

0bc3b262-4187-4e09-a4d2-87167872f1c2

Integration Version

2024.04.2

Homeassistant core version

2024.5.4

Inverter brand

Solax

Plugin used

plugin_growatt.py

Serial prefix

SOLAX

Connection Method

Waveshare

Detailed Error Log

2024-05-18 10:35:19.139 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to import_module inside the event loop by custom integration 'solax_modbus' at custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module( (offender: /config/custom_components/solax_modbus/init.py, line 142: plugin = importlib.import_module(), please create a bug report at https://github.com/wills106/homsassistant-solax-modbus/issues

Additional context

No additional text

wills106 commented 1 month ago

Missing entities is documented #878 Blocking call #876

UK-JustinSmall commented 1 month ago

Thanks but it is these internal sensors that are being referenced in jinga2 code thus breaking our application. Can you please reconsider and add these entities back in please.