Skip to content

Commit

Permalink
removed "mode"+"step" in HA discovery for BOOL type entities
Browse files Browse the repository at this point in the history
  • Loading branch information
pswid committed Jan 29, 2023
1 parent 226c1fd commit d36f877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d36f877

Please sign in to comment.