fix brand in HA

This commit is contained in:
MichaelDvP
2026-02-12 17:41:10 +01:00
parent 89029df25e
commit 81cba6c0a8
2 changed files with 2 additions and 2 deletions

View File

@@ -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++;

View File

@@ -1 +1 @@
#define EMSESP_APP_VERSION "3.8.2-dev.4"
#define EMSESP_APP_VERSION "3.8.2-dev.5"