fix is_running to allow it to stop running

This commit is contained in:
bohdan-s
2022-01-13 20:25:03 +11:00
parent 9d055b1e35
commit ed25d104bb
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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
+1 -1
View File
@@ -1 +1 @@
__version__ = '0.2.0'
__version__ = '0.2.1'