mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-27 00:59:10 +03:00
fix HA sensor referencing
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user