fix manual_load config

This commit is contained in:
bohdan-s
2021-12-24 14:51:06 +11:00
parent 89793fe94b
commit 013523f0bd
+1 -1
View File
@@ -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