From d36f87707a77f4099036f96eaff35f1f7a7991ad Mon Sep 17 00:00:00 2001 From: pswid <78219494+pswid@users.noreply.github.com> Date: Sun, 29 Jan 2023 19:08:17 +0100 Subject: [PATCH] removed "mode"+"step" in HA discovery for BOOL type entities --- src/mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 147e8fb3d..7f000fe58 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -1088,7 +1088,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev for (uint8_t i = 0; i < options_size; i++) { option_list.add(Helpers::translated_word(options[i])); } - } else if (type != DeviceValueType::STRING) { + } else if (type != DeviceValueType::STRING && type != DeviceValueType::BOOL) { // Must be Numeric.... doc["mode"] = "box"; // auto, slider or box if (num_op > 0) {