mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-23 11:02:10 +10:00
fix is_running hopefully
This commit is contained in:
@@ -91,6 +91,8 @@ def scrape_inverter():
|
|||||||
if inverter.get('start_stop'):
|
if inverter.get('start_stop'):
|
||||||
if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run':
|
if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run':
|
||||||
inverter["is_running"] = True
|
inverter["is_running"] = True
|
||||||
|
else:
|
||||||
|
inverter["is_running"] = False
|
||||||
else:
|
else:
|
||||||
inverter["is_running"] = False
|
inverter["is_running"] = False
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Reference in New Issue
Block a user