From bbbeb155f091f3dbbfaea1e26b4120c85ffe08ec Mon Sep 17 00:00:00 2001 From: pswid <78219494+pswid@users.noreply.github.com> Date: Fri, 13 Jan 2023 21:45:29 +0100 Subject: [PATCH] tags in entity IDs (long format) always in English now in mqtt discovery topics you can see e.g: "uniq_id": "thermostat_OG1_mode_type" (for Polish lang.) but should be: "uniq_id": "thermostat_hc1_mode_type", --- src/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index d9d5cb456..80749352b 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -1003,7 +1003,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev if (EMSdevice::tag_to_string(tag).empty()) { snprintf(uniq_id, sizeof(uniq_id), "%s_%s", device_name, Helpers::toLower(uniq_s).c_str()); } else { - snprintf(uniq_id, sizeof(uniq_id), "%s_%s_%s", device_name, EMSdevice::tag_to_string(tag).c_str(), Helpers::toLower(uniq_s).c_str()); + snprintf(uniq_id, sizeof(uniq_id), "%s_%s_%s", device_name, EMSdevice::tag_to_string(tag, false).c_str(), Helpers::toLower(uniq_s).c_str()); } }