mirror of
https://github.com/esphome/esphome.git
synced 2024-12-23 05:54:56 +01:00
Fix min/max keys in MQTT Number to match Home Assistant (#2102)
This commit is contained in:
parent
5ce923ea90
commit
a6fac2b175
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ void MQTTNumberComponent::send_discovery(JsonObject &root, mqtt::SendDiscoveryCo
|
|||
// https://www.home-assistant.io/integrations/number.mqtt/
|
||||
if (!traits.get_icon().empty())
|
||||
root["icon"] = traits.get_icon();
|
||||
root["min_value"] = traits.get_min_value();
|
||||
root["max_value"] = traits.get_max_value();
|
||||
root["min"] = traits.get_min_value();
|
||||
root["max"] = traits.get_max_value();
|
||||
root["step"] = traits.get_step();
|
||||
|
||||
config.command_topic = true;
|
||||
|
|
Loading…
Reference in a new issue