From 34ca5931907a3d4bea42167a0414e02a6bf33885 Mon Sep 17 00:00:00 2001 From: technyon Date: Mon, 14 Aug 2023 18:32:18 +0200 Subject: [PATCH] remove name from ha discovery for sensors --- Config.h | 2 +- Network.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Config.h b/Config.h index ce568a2..89306c5 100644 --- a/Config.h +++ b/Config.h @@ -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 diff --git a/Network.cpp b/Network.cpp index 0e4cbbe..7aa66e3 100644 --- a/Network.cpp +++ b/Network.cpp @@ -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 != "") {