fix SRC climate creation, #2936

This commit is contained in:
MichaelDvP
2026-01-28 15:02:28 +01:00
parent ffb90b8f9a
commit b3fec5ed7d

View File

@@ -2159,8 +2159,8 @@ void EMSdevice::mqtt_ha_entity_config_create() {
if (dv.tag >= DeviceValueTAG::TAG_SRC1 && dv.tag <= DeviceValueTAG::TAG_SRC16 && !strcmp(dv.short_name, FL_(selRoomTemp)[0])) {
const char * icon = nullptr;
for (auto & d : devicevalues_) {
if (d.tag == dv.tag && !strcmp(d.short_name, FL_(icon)[0]) && *(uint8_t *)(d.value_p != 0)) {
icon = d.options[*(uint8_t *)(d.value_p)][0];
if (d.tag == dv.tag && !strcmp(d.short_name, FL_(icon)[0]) && *(uint8_t *)d.value_p != 0) {
icon = d.options[*(uint8_t *)d.value_p][0];
break;
}
}