diff --git a/SunGather/sungather.py b/SunGather/sungather.py index 6559e3b..82ce750 100644 --- a/SunGather/sungather.py +++ b/SunGather/sungather.py @@ -116,7 +116,7 @@ def main(): logging.debug(f'Inverter Config Loaded: {config_inverter}') if config_inverter.get('host'): - inverter = SungrowClient(config_inverter) + inverter = SungrowClient.SungrowClient(config_inverter) else: logging.error(f"Error: host option in config is required") sys.exit("Error: host option in config is required")