From 8bbd5c79ab4acd77c82f548e1a3438aed6fbb649 Mon Sep 17 00:00:00 2001 From: bohdan-s Date: Thu, 13 Jan 2022 20:58:01 +1100 Subject: [PATCH] fix is_running hopefully --- SunGather/sungather.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SunGather/sungather.py b/SunGather/sungather.py index ab3f70a..0c68e63 100644 --- a/SunGather/sungather.py +++ b/SunGather/sungather.py @@ -91,6 +91,8 @@ def scrape_inverter(): if inverter.get('start_stop'): if inverter.get('start_stop', False) == 'Start' and inverter.get('work_state_1', False) == 'Run': inverter["is_running"] = True + else: + inverter["is_running"] = False else: inverter["is_running"] = False except Exception: