mirror of
https://github.com/esphome/esphome.git
synced 2025-10-31 23:21:54 +00:00
[fan] Remove deprecated set_speed function (#11590)
This commit is contained in:
@@ -60,8 +60,6 @@ class FanCall {
|
|||||||
this->speed_ = speed;
|
this->speed_ = speed;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
ESPDEPRECATED("set_speed() with string argument is deprecated, use integer argument instead.", "2021.9")
|
|
||||||
FanCall &set_speed(const char *legacy_speed);
|
|
||||||
optional<int> get_speed() const { return this->speed_; }
|
optional<int> get_speed() const { return this->speed_; }
|
||||||
FanCall &set_direction(FanDirection direction) {
|
FanCall &set_direction(FanDirection direction) {
|
||||||
this->direction_ = direction;
|
this->direction_ = direction;
|
||||||
|
|||||||
Reference in New Issue
Block a user