mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
fixes MQTT enum index option leads to error in HA #1280
This commit is contained in:
@@ -920,7 +920,7 @@ bool Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev
|
||||
for (uint8_t i = 0; i < options_size; i++) {
|
||||
option_list.add(Helpers::itoa(i)); // as a string
|
||||
}
|
||||
snprintf(sample_val, sizeof(sample_val), "0");
|
||||
snprintf(sample_val, sizeof(sample_val), "'0'");
|
||||
} else {
|
||||
// use strings
|
||||
for (uint8_t i = 0; i < options_size; i++) {
|
||||
|
||||
Reference in New Issue
Block a user