fix HA sensor referencing

This commit is contained in:
proddy
2025-12-17 11:37:46 +01:00
parent 55621e12d9
commit 310afe3ab8
3 changed files with 10 additions and 7 deletions

View File

@@ -1468,7 +1468,7 @@ void Mqtt::add_ha_dev_section(JsonObject doc, const char * name, const char * mo
dev_json["name"] = Mqtt::basename();
}
// this is used to only create it once when entities are dynamically added
// create the model, manufacturer and version
if (create_model) {
dev_json["mf"] = brand != nullptr ? brand : "EMS-ESP";
if (model != nullptr) {