mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
HA obj_id/default_entity_id fix - #2640
This commit is contained in:
@@ -531,8 +531,8 @@ void TemperatureSensor::publish_values(const bool force) {
|
||||
snprintf(uniq_s, sizeof(uniq_s), "%s_%s", F_(temperaturesensor), sensor.id().c_str());
|
||||
}
|
||||
|
||||
config["obj_id"] = uniq_s;
|
||||
config["uniq_id"] = uniq_s; // same as object_id/obj_id
|
||||
config["uniq_id"] = uniq_s;
|
||||
config["default_entity_id"] = (std::string) "sensor." + uniq_s;
|
||||
|
||||
char name[50];
|
||||
snprintf(name, sizeof(name), "%s", sensor.name().c_str());
|
||||
|
||||
Reference in New Issue
Block a user