Skip to content

Commit

Permalink
Bug topic direct panel subscription (#32)
Browse files Browse the repository at this point in the history
* ensure empty array of panel topics
  • Loading branch information
reinhard-brandstaedter authored Sep 21, 2023
1 parent edfaa4e commit 3a0bbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solarflow-control.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
topic_acinput = os.environ.get('TOPIC_ACINPUT',"solar/ac/power")

# topics for panels power which feed directly to inverter
topic_direct_panel = os.environ.get('TOPIC_DIRECT_PANEL',"")
topics_direct_panel = [ t.strip() for t in topic_direct_panel.split(',')]
topic_direct_panel = os.environ.get('TOPIC_DIRECT_PANEL',None)
topics_direct_panel = [ t.strip() for t in topic_direct_panel.split(',')] if topic_direct_panel else []

# topics for telemetry read from Solarflow Hub
topic_solarflow_solarinput = "solarflow-hub/telemetry/solarInputPower"
Expand Down

0 comments on commit 3a0bbb5

Please sign in to comment.