diff --git a/SunGather/sungather.py b/SunGather/sungather.py index cb7befb..ab3f70a 100644 --- a/SunGather/sungather.py +++ b/SunGather/sungather.py @@ -92,8 +92,7 @@ def scrape_inverter(): if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run': inverter["is_running"] = True else: - if inverter.get('start_stop') == 'Stop': - inverter["is_running"] = False + inverter["is_running"] = False except Exception: pass diff --git a/SunGather/version.py b/SunGather/version.py index a9fdc5c..fb13a35 100644 --- a/SunGather/version.py +++ b/SunGather/version.py @@ -1 +1 @@ -__version__ = '0.2.0' \ No newline at end of file +__version__ = '0.2.1' \ No newline at end of file