Update cover.h for compile errors with stop() (#4879)

This commit is contained in:
Davrosx 2023-05-23 20:52:34 +01:00 committed by Keith Burzinski
parent 19f91a7deb
commit fb4cb07c6f
No known key found for this signature in database
GPG key ID: 802564C5F0EEFFBE

View file

@ -140,8 +140,9 @@ class Cover : public EntityBase, public EntityBase_DeviceClass {
/** Stop the cover. /** Stop the cover.
* *
* This is a legacy method and may be removed later, please use `.make_call()` instead. * 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 stop();
void add_on_state_callback(std::function<void()> &&f); void add_on_state_callback(std::function<void()> &&f);