Files
esphome/esphome/components/web_server/web_server.cpp
Ryan Wagoner 4fe2fe8065 Always include fan_mode/custom_fan_mode in climate JSON and fix fan_modes trait check
Apply Option A (always include with empty string fallback) to fan_mode and
custom_fan_mode fields, matching the existing preset pattern. This prevents
stale values when SSE updates use Object.assign().

Also fix pre-existing bug where fan_modes list was gated on custom fan modes
instead of supports_fan_modes.
2026-02-18 13:54:12 -05:00

90 KiB