Fix min/max keys in MQTT Number to match Home Assistant (#2102)

This commit is contained in:
Paul Monigatti 2021-07-31 23:20:10 +12:00 committed by Otto winter
parent 5ce923ea90
commit a6fac2b175
No known key found for this signature in database
GPG key ID: 48ED2DDB96D7682C

View file

@ -39,8 +39,8 @@ void MQTTNumberComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryCo
// https://www.home-assistant.io/integrations/number.mqtt/ // https://www.home-assistant.io/integrations/number.mqtt/
if (!traits.get_icon().empty()) if (!traits.get_icon().empty())
root["icon"] = traits.get_icon(); root["icon"] = traits.get_icon();
root["min_value"] = traits.get_min_value(); root["min"] = traits.get_min_value();
root["max_value"] = traits.get_max_value(); root["max"] = traits.get_max_value();
root["step"] = traits.get_step(); root["step"] = traits.get_step();
config.command_topic = true; config.command_topic = true;