Skip to content

Commit

Permalink
Update json_mqtt.py
Browse files Browse the repository at this point in the history
Add tag information to topic
  • Loading branch information
sante85 authored Oct 20, 2023
1 parent c3708f7 commit b4224e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mppsolar/outputs/json_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def build_msgs(self, *args, **kwargs):
output = to_json(data, keep_case, excl_filter, filter)
payload = js.dumps(output)
msg = {
"topic": topic,
"topic": f"{tag}/{topic}",
"payload": payload,
}
msgs.append(msg)
Expand Down

0 comments on commit b4224e6

Please sign in to comment.