diff --git a/luftdaten2mqtt.py b/luftdaten2mqtt.py index 4f04f4f..6d7a5da 100644 --- a/luftdaten2mqtt.py +++ b/luftdaten2mqtt.py @@ -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,