From 81cba6c0a81ac68b1ee0367736f126943ac3e331 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 12 Feb 2026 17:41:10 +0100 Subject: [PATCH] fix brand in HA --- src/core/emsdevice.cpp | 2 +- src/emsesp_version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/emsdevice.cpp b/src/core/emsdevice.cpp index 0f07affdf..dc558c413 100644 --- a/src/core/emsdevice.cpp +++ b/src/core/emsdevice.cpp @@ -2160,7 +2160,7 @@ void EMSdevice::mqtt_ha_entity_config_create() { if (!dv.has_state(DeviceValueState::DV_HA_CONFIG_CREATED) && dv.has_state(DeviceValueState::DV_ACTIVE) && !dv.has_state(DeviceValueState::DV_API_MQTT_EXCLUDE)) { // create_device_config is only done once for the EMS device. It can added to any entity, so we take the first - if (Mqtt::publish_ha_sensor_config_dv(dv, name().c_str(), brand_to_char(), to_string_version().c_str(), false, create_device_config)) { + if (Mqtt::publish_ha_sensor_config_dv(dv, name().c_str(), std::string(brand_to_char()).c_str(), to_string_version().c_str(), false, create_device_config)) { dv.add_state(DeviceValueState::DV_HA_CONFIG_CREATED); create_device_config = false; // only create the main config once count++; diff --git a/src/emsesp_version.h b/src/emsesp_version.h index 2cbbb958a..1d71f4366 100644 --- a/src/emsesp_version.h +++ b/src/emsesp_version.h @@ -1 +1 @@ -#define EMSESP_APP_VERSION "3.8.2-dev.4" +#define EMSESP_APP_VERSION "3.8.2-dev.5"