Skip to content

Commit e9f77c1

Browse files
authored
Merge pull request #2954 from MichaelDvP/dev
fix brand in HA
2 parents 89029df + 81cba6c commit e9f77c1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/emsdevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2160,7 +2160,7 @@ void EMSdevice::mqtt_ha_entity_config_create() {
21602160
if (!dv.has_state(DeviceValueState::DV_HA_CONFIG_CREATED) && dv.has_state(DeviceValueState::DV_ACTIVE)
21612161
&& !dv.has_state(DeviceValueState::DV_API_MQTT_EXCLUDE)) {
21622162
// create_device_config is only done once for the EMS device. It can added to any entity, so we take the first
2163-
if (Mqtt::publish_ha_sensor_config_dv(dv, name().c_str(), brand_to_char(), to_string_version().c_str(), false, create_device_config)) {
2163+
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)) {
21642164
dv.add_state(DeviceValueState::DV_HA_CONFIG_CREATED);
21652165
create_device_config = false; // only create the main config once
21662166
count++;

src/emsesp_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
#define EMSESP_APP_VERSION "3.8.2-dev.4"
1+
#define EMSESP_APP_VERSION "3.8.2-dev.5"

0 commit comments

Comments
 (0)