Skip to content

Commit

Permalink
HA use box for numbers now that HA supports this
Browse files Browse the repository at this point in the history
  • Loading branch information
proddy committed Jan 22, 2023
1 parent dd338f5 commit 1fa92ee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,9 +1090,7 @@ void Mqtt::publish_ha_sensor_config(uint8_t type, // EMSdev
}
} else if (type != DeviceValueType::STRING) {
// Must be Numeric....
// mode can be auto, slider or box. Because its fiddly and error prone, force conversion to box
// but... this is not currently supported in HA MQTT Number yet!
// doc["mode"] = "box";
doc["mode"] = "box"; // auto, slider or box
if (num_op > 0) {
doc["step"] = 1.0 / num_op;
} else if (num_op < 0) {
Expand Down

0 comments on commit 1fa92ee

Please sign in to comment.