That’s helpful anyway, I will concentrate on my configuration instead on concentrating on installation of packages like pymodbus…
Edit: I tried myself instantiating a new HA installation on docker, and, in fact, your package works. Maybe I’m missing something: when running HA core, it uses pymodbus from /srv/homeassistant/lib/python3.10/site-packages/pymodbus
When running on Docker, does it get pymodbus from the same folder or elsewhere?
Edit2: looking around, I guess I can answer myself, and the when using docker, the HA installation is inside the docker, and pymodbus I guess it’s this one:
/var/lib/docker/overlay2/e3d22a5c5efdb1081b2232bdedeb236c8dafca35b8e4d596267ba23badbec3b1/diff/usr/local/lib/python3.10/site-packages/pymodbus
/var/lib/docker/overlay2/e3d22a5c5efdb1081b2232bdedeb236c8dafca35b8e4d596267ba23badbec3b1/diff/usr/local/lib/python3.10/site-packages/pymodbus-2.5.3.dist-info
The core installation uses pymodbus version 3.0.0. I tried removing pymodbus installations:
sudo -u homeassistant -H -s
source /srv/homeassistant/bin/activate
pip uninstall pymodbus
Then trying again to add your integration, from logs I get:
2022-11-16 13:25:31.198 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of pymodbus==3.0.0
2022-11-16 13:25:39.317 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration abb_powerone_pvi_sunspec: cannot import name 'ModbusTcpClient' from 'pymodbus.client' (/srv/homeassistant/lib/python3.10/site-packages/pymodbus/client/__init__.py)
Version 3.0.0 is correctly installed after I get this message, but it’s a different version compared to the one in docker. Does your package have a specific version as a pre-requisite?
I also tried removing all pymodbus installations, and got the same message. I then tried removing all installations and install pymodbus 2.5.3, and when I try adding your integration, it tries to install 3.0.0 anyway and the log shows again the same message:
2022-11-16 13:25:31.198 INFO (SyncWorker_1) [homeassistant.util.package] Attempting install of pymodbus==3.0.0
2022-11-16 13:25:39.317 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading configuration flow for integration abb_powerone_pvi_sunspec: cannot import name 'ModbusTcpClient' from 'pymodbus.client' (/srv/homeassistant/lib/python3.10/site-packages/pymodbus/client/__init__.py)