From 013523f0bdade0f28524c20409296e455230e353 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Fri, 24 Dec 2021 14:51:06 +1100 Subject: [PATCH] fix manual_load config --- SunGather/sungather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SunGather/sungather.py b/SunGather/sungather.py index 2e1ebe5..d512d87 100644 --- a/SunGather/sungather.py +++ b/SunGather/sungather.py @@ -284,7 +284,7 @@ def scrape_inverter(): pass try: - if inverter.get('manual_load', False): # Inverter is returning no data, we need to calculate it manually + if config['inverter'].get('manual_load', False): # Inverter is returning no data, we need to calculate it manually inverter["load_power"] = int(inverter.get('total_active_power')) + int(inverter.get('meter_power')) except Exception: pass