mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-22 18:47:49 +10:00
fix is_running to allow it to stop running
This commit is contained in:
@@ -92,8 +92,7 @@ def scrape_inverter():
|
|||||||
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:
|
else:
|
||||||
if inverter.get('start_stop') == 'Stop':
|
inverter["is_running"] = False
|
||||||
inverter["is_running"] = False
|
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
__version__ = '0.2.0'
|
__version__ = '0.2.1'
|
||||||
Reference in New Issue
Block a user