Skip to content

Commit

Permalink
Update ginlong_solis_api_connector.py
Browse files Browse the repository at this point in the history
Don't publish list batteryList to mqtt
  • Loading branch information
TobiO79 committed Mar 9, 2024
1 parent 4f00ea9 commit 2d95814
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ginlong_solis_api_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,8 @@ def write_to_mqtt(inverter_data, update_date):
else:
auth_settings = None

inverter_data.pop("batteryList")

msgs.append((mqtt_topic + "updateDate", int(update_date), 0, False))
for key, value in inverter_data.items():
msgs.append((mqtt_topic + key, value, 0, False))
Expand Down

0 comments on commit 2d95814

Please sign in to comment.