cyrils / renogy-bt

Python library to read Renogy compatible BT-1 or BT-2 bluetooth modules using Raspberry Pi.
GNU General Public License v3.0
76 stars 27 forks source link

Fix TypeError from missing import. #56

Closed alancoon closed 5 months ago

alancoon commented 5 months ago

Imports InverterClient in renogybt/__init__.py to avoid a TypeError.

$ python3 ./example.py config.ini
Traceback (most recent call last):
  File ".../renogy-bt/example.py", line 37, in <module>
    InverterClient(config, on_data_received).connect()
TypeError: 'module' object is not callable