Skip to content

Commit 5cf41bd

Browse files
committed
number format for enum-bool
1 parent f28fafe commit 5cf41bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emsdevice.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ bool EMSdevice::generate_values_json(JsonObject & root, const uint8_t tag_filter
626626
// handle Booleans (true, false)
627627
if ((dv.type == DeviceValueType::BOOL) && Helpers::hasValue(*(uint8_t *)(dv.value_p), EMS_VALUE_BOOL)) {
628628
// see if we have options for the bool's
629-
if (dv.options_size == 2) {
629+
if (dv.options_size == 2 && Mqtt::bool_format() != BOOL_FORMAT_10) {
630630
json[name] = *(uint8_t *)(dv.value_p) ? dv.options[0] : dv.options[1];
631631
has_value = true;
632632
} else {

0 commit comments

Comments
 (0)