mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 23:18:10 +01:00
Add visual step/min/max for webserver climate (#3275)
This commit is contained in:
parent
900b4f1af9
commit
5b2457af0b
1 changed files with 3 additions and 1 deletions
|
@ -976,7 +976,9 @@ std::string WebServer::climate_json(climate::Climate *obj, JsonDetail start_conf
|
|||
}
|
||||
|
||||
root["mode"] = PSTR_LOCAL(climate_mode_to_string(obj->mode));
|
||||
|
||||
root["max_temp"] = traits.get_visual_max_temperature();
|
||||
root["min_temp"] = traits.get_visual_min_temperature();
|
||||
root["step"] = traits.get_visual_temperature_step();
|
||||
if (traits.get_supports_action()) {
|
||||
root["action"] = PSTR_LOCAL(climate_action_to_string(obj->action));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue