From 3224d8823d0d8f8895eca5d1efeea89abf7a9c69 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 29 Dec 2025 18:35:34 +0100 Subject: [PATCH] fix HA config topic to basename --- src/core/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mqtt.cpp b/src/core/mqtt.cpp index 1d721dd53..b2758eeb4 100644 --- a/src/core/mqtt.cpp +++ b/src/core/mqtt.cpp @@ -918,7 +918,7 @@ bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev // build a config topic that will be prefix onto a HA type (e.g. number, switch) char config_topic[70]; - snprintf(config_topic, sizeof(config_topic), "%s/%s_%s/config", Mqtt::base().c_str(), device_name, entity_with_tag); + snprintf(config_topic, sizeof(config_topic), "%s/%s_%s/config", Mqtt::basename().c_str(), device_name, entity_with_tag); // create the topic // depending on the type and whether the device entity is writable (i.e. a command)