[Bug]: TypeError: AsyncModbusTcpClient.__init__() got an unexpected keyword argument 'trace_connect' #957
Closed
3 of 5 tasks
Labels
bug
Something isn't working
Describe the issue
my Huawei Solar integration is not working anymore
I removed it completely and tried to setup it again - "no connection"
it seems, that the integration does no even try to connect to my Huawei EMMA2
Core: 2025.2.5
Huawei: v1.5.4
Logger: huawei_solar.huawei_solar
Quelle: /usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py:185
Erstmals aufgetreten: 20:14:21 (3 Vorkommnisse)
Zuletzt protokolliert: 20:14:35
Aborting client creation due to error
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/huawei_solar/huawei_solar.py", line 178, in create
client = AsyncHuaweiSolarModbusTcpClient(host, port, timeout)
File "/usr/local/lib/python3.13/site-packages/huawei_solar/modbus.py", line 65, in init
super().init(host, port=port, timeout=timeout, reconnect_delay=RECONNECT_DELAY)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/huawei_solar/modbus.py", line 28, in init
super().init(*args, **kwargs, trace_connect=self._trace_connect) # forward all unused arguments
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: AsyncModbusTcpClient.init() got an unexpected keyword argument 'trace_connect'
Describe your Huawei Solar Setup
Inverter Type: SUN2000MB0
Inverter Firmware version: V200R023C10SPC208
Huawei Solar integration version: v1.5.4
EMMA: SmartHEMS (100R024C10SPC100)
connection: wired
How do you connect to the inverter?
Via the SDongle, wired connection
Upload your Diagnostics File
Drag & Drop your Diagnostics File here.
Upload your relevant debug logs
Please confirm the following:
The text was updated successfully, but these errors were encountered: