remove name from ha discovery for sensors

This commit is contained in:
technyon
2023-08-14 18:32:18 +02:00
parent a5d740fd26
commit 34ca593190
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#pragma once
#define NUKI_HUB_VERSION "8.25"
#define NUKI_HUB_VERSION "8.26-pre-2"
#define MQTT_QOS_LEVEL 1
#define MQTT_CLEAN_SESSIONS false

View File

@@ -1172,7 +1172,7 @@ void Network::publishHassTopic(const String& mqttDeviceType,
json["dev"]["mdl"] = deviceType;
json["dev"]["name"] = name;
json["~"] = baseTopic;
json["name"] = name + String(" " + displayName);
json["name"] = displayName;
json["unique_id"] = String(uidString) + uidStringPostfix;
if(deviceClass != "")
{