From ed25d104bb3f0fc3e52d8e813bbeba8db9c3e4e2 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Thu, 13 Jan 2022 20:25:03 +1100 Subject: [PATCH] fix is_running to allow it to stop running --- SunGather/sungather.py | 3 +-- SunGather/version.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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