This commit is contained in:
bohdan-s
2023-01-05 17:13:37 +11:00
parent 224798a78a
commit 734670d849
+1 -1
View File
@@ -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")