mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add back obj_id for HA test
This commit is contained in:
@@ -531,8 +531,9 @@ void TemperatureSensor::publish_values(const bool force) {
|
||||
snprintf(uniq_s, sizeof(uniq_s), "%s_%s", F_(temperaturesensor), sensor.id().c_str());
|
||||
}
|
||||
|
||||
config["uniq_id"] = uniq_s;
|
||||
config["default_entity_id"] = (std::string) "sensor." + uniq_s;
|
||||
config["uniq_id"] = uniq_s;
|
||||
config["obj_id"] = uniq_s;
|
||||
config["def_ent_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