WouterTuinstra / Homeassistant-Growatt-Local-Modbus

Provides Home Assistant sensors for Growatt inverters that you can connect directly using modbus protocol
Apache License 2.0
17 stars 11 forks source link

Do not await modbus 'close()' calls #12

Closed hogend closed 8 months ago

hogend commented 8 months ago

pymodbus modbus.close returns 'None' and is not async. Hence, it can not be 'awaited'. This raises the following exception:

TypeError: object NoneType can't be used in 'await' expression

This commit removes 'await' from all 'close()' calls.