Skip to content

Commit

Permalink
drop name prefix as this now should be standard
Browse files Browse the repository at this point in the history
  • Loading branch information
zeridon committed Sep 11, 2023
1 parent 9cc302e commit 7c046c2
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 @@ -173,7 +173,7 @@ def publish(json, topic_prefix, device_address):
t = "homeassistant/sensor/" + uniq_id + "/config"
val = {
"~": topic_prefix,
"name": dev_name + " " + str(SENSOR_TYPES[str(item["value_type"])][0]),
"name": str(SENSOR_TYPES[str(item["value_type"])][0]),
"stat_t": "~/" + str(item["value_type"]),
"frc_upd": "False",
"qos": 0,
Expand Down

0 comments on commit 7c046c2

Please sign in to comment.