mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 17:05:21 +01:00
Update cover.h for compile errors with stop() (#4879)
This commit is contained in:
parent
ffa5e29dab
commit
35ef4aad60
1 changed files with 2 additions and 1 deletions
|
@ -140,8 +140,9 @@ class Cover : public EntityBase, public EntityBase_DeviceClass {
|
|||
/** Stop the cover.
|
||||
*
|
||||
* This is a legacy method and may be removed later, please use `.make_call()` instead.
|
||||
* As per solution from issue #2885 the call should include perform()
|
||||
*/
|
||||
ESPDEPRECATED("stop() is deprecated, use make_call().set_command_stop() instead.", "2021.9")
|
||||
ESPDEPRECATED("stop() is deprecated, use make_call().set_command_stop().perform() instead.", "2021.9")
|
||||
void stop();
|
||||
|
||||
void add_on_state_callback(std::function<void()> &&f);
|
||||
|
|
Loading…
Reference in a new issue