Async pymodbus

Hello,

Has anyone managed to get pymodbus work async in Home Assistant?

I’m trying to make a component that uses pymodbus and I’m trying to make it async. The code works in Home Assistant without using async, and outside of Home Assistant with async, but in Home Assisant it gets somewhere stuck on waiter.acquire() in threading.py.

If you want to look at my code, it’s on my Github page (and the huawei-solar code is here). Put this in the configuration to run it (it doesn’t matter that you don’t have anything listening on that ip address, it gets stuck before connecting):

 sensor:
  - platform: huawei_solar
    host: '192.168.0.123'