Skip to content

Commit

Permalink
report only chip type and not serial in model
Browse files Browse the repository at this point in the history
  • Loading branch information
zeridon committed Sep 11, 2023
1 parent 7c046c2 commit 6e09640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luftdaten2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def publish(json, topic_prefix, device_address):
"dev": {
"ids": [str(topic_prefix).split("/")[-1].lower()],
"name": dev_name,
"mdl": "DIY " + str(bottle.request.headers.get("X-Sensor")),
"mdl": "DIY " + str(bottle.request.headers.get("X-Sensor").split("-")[1]),
"sw": json["software_version"],
"mf": "DIY Luftdaten",
"cu": "http://" + str(device_address),
Expand Down

0 comments on commit 6e09640

Please sign in to comment.