remove name from ha discovery for sensors
This commit is contained in:
2
Config.h
2
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
|
||||
|
||||
@@ -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 != "")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user