Skip to content

Commit

Permalink
replace invalid chars in topic
Browse files Browse the repository at this point in the history
  • Loading branch information
zeridon committed Feb 12, 2024
1 parent 37104a0 commit 10089b8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions luftdaten2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def route_luftdaten_json2mqtt():

def publish(json, topic_prefix, device_address):
"""Publish to mqtt whatever we can/want"""
topic_prefix = topic_prefix.replace(":", "-")

if json["software_version"]:
t = topic_prefix + "/firmware"
Expand Down

0 comments on commit 10089b8

Please sign in to comment.