dewet22 / givenergy-modbus

A python library to access GivEnergy inverters via Modbus TCP on a local network, with no dependency on the GivEnergy Cloud.
Other
19 stars 15 forks source link

'Coordinator' object has no attribute 'refresh_plant' #10

Open silverclaw opened 2 years ago

silverclaw commented 2 years ago

Description

The dump-registers command fails to run.

The refresh_plant member function seems to have been removed in 1180ce162544481ccc1a4983041a53f908d0230a.

What I Did

python3 cli.py --host "192.168.1.188" dump-registers --batteries 2

Traceback (most recent call last):
  File "cli.py", line 184, in <module>
    main(obj={})  # pragma: no cover
(...)
  File "cli.py", line 71, in dump_registers
    ctx.obj['CLIENT'].refresh_plant(plant=plant, full_refresh=True)
AttributeError: 'Coordinator' object has no attribute 'refresh_plant'