mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 18:34:21 -07:00
5b5d3fa9b393dee4df06fbe0d84ca77d1df572b5
The web server's handle_climate_request() parsed mode, fan_mode, and swing_mode but did not parse preset, making it impossible to set climate presets via the REST API or web UI. Also fix the JSON response to always include the presets and custom_presets arrays when the climate entity supports them, rather than only when a preset is currently active. This matches how swing_modes is already handled and ensures the frontend can render preset controls before one is selected.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
528 MiB
Languages
C++
64.1%
Python
35.5%
C
0.3%
