mirror of
https://github.com/alexhopeoconnor/SunGather.git
synced 2026-10-22 18:47:49 +10:00
Allow for multiple run types, but still show as "ON"
This commit is contained in:
@@ -329,7 +329,7 @@ class SungrowInverter():
|
|||||||
# to help with graphing.
|
# to help with graphing.
|
||||||
try:
|
try:
|
||||||
if self.latest_scrape.get('start_stop'):
|
if self.latest_scrape.get('start_stop'):
|
||||||
if self.latest_scrape.get('start_stop', False) == 'Start' and self.latest_scrape.get('work_state_1', False) == 'Run':
|
if self.latest_scrape.get('start_stop', False) == 'Start' and self.latest_scrape.get('work_state_1', False).contains('Run'):
|
||||||
self.latest_scrape["run_state"] = "ON"
|
self.latest_scrape["run_state"] = "ON"
|
||||||
else:
|
else:
|
||||||
self.latest_scrape["run_state"] = "OFF"
|
self.latest_scrape["run_state"] = "OFF"
|
||||||
|
|||||||
Reference in New Issue
Block a user