dev20, remove obj_id again

This commit is contained in:
MichaelDvP
2025-10-15 15:09:22 +02:00
parent 766281d8d2
commit 9bf57c3e22
7 changed files with 1 additions and 10 deletions

View File

@@ -206,7 +206,6 @@ void Shower::create_ha_discovery() {
snprintf(str, sizeof(str), "shower_active"); // v3.4 compatible
}
doc["uniq_id"] = str;
doc["obj_id"] = str;
doc["def_ent_id"] = (std::string) "binary_sensor." + str;
snprintf(stat_t, sizeof(stat_t), "%s/shower_active", Mqtt::base().c_str());
@@ -225,7 +224,6 @@ void Shower::create_ha_discovery() {
snprintf(str, sizeof(str), "%s_shower_duration", Mqtt::basename().c_str());
doc["uniq_id"] = str;
doc["obj_id"] = str;
doc["def_ent_id"] = (std::string) "sensor." + str;
snprintf(stat_t, sizeof(stat_t), "%s/shower_data", Mqtt::base().c_str());