ArekKubacki / Hoymiles-Plant-DTU-Pro

Hoymiles-Plant-DTU-Pro via Modbus TCP
MIT License
37 stars 7 forks source link

Error loading component in HA2023.9.0 #16

Closed hencou closed 12 months ago

hencou commented 12 months ago

Since HomeAssistant 2023.9.0 this component is not working anymore and generates an error in the HA log: "cannot import name 'Defaults' from 'pymodbus.constants'".

As a temporary workaround I commented out lines 16-19 in this file https://github.com/ArekKubacki/Hoymiles-Plant-DTU-Pro/blob/main/custom_components/hoymiles_dtu/sensor.py, and now it seems working again. Can this lines safely being ignored or need it to be something else?

Thank you in advance,

drac0linux commented 12 months ago

I came here to report the same issue. I was hoping it would be fixed by the next update, however 2023.9.1 dropped a short while ago and the issue still exists afterwards.

Will try the workaround by @hencou, would like to know the same if his workaround is problematic for the long term? I'll be happy to provide any log files if needed.

ArekKubacki commented 12 months ago

The new version will be available on Monday at the latest.

ArekKubacki commented 12 months ago

New Release on GitHub is available now!