1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-04 00:51:49 +00:00
This commit is contained in:
J. Nick Koston
2025-10-31 11:04:27 -05:00
parent cd3f10630b
commit 58ae4a38be

View File

@@ -113,8 +113,8 @@ class Fan : public EntityBase {
FanDirection direction{FanDirection::FORWARD};
// The current preset mode of the fan
// Deprecated: Use get_preset_mode() instead. Will be removed in 2026.5.0
std::string preset_mode {}
__attribute__((deprecated("Use get_preset_mode() instead of .preset_mode. Will be removed in 2026.5.0")));
std::string preset_mode{};
FanCall turn_on();
FanCall turn_off();