mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 19:12:11 +10:00
fix manual_load config
This commit is contained in:
@@ -284,7 +284,7 @@ def scrape_inverter():
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
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'))
|
inverter["load_power"] = int(inverter.get('total_active_power')) + int(inverter.get('meter_power'))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user