Add toggle command to cover web_server endpoint (#6319)

This commit is contained in:
Nate Clark 2024-03-04 16:55:10 -05:00 committed by GitHub
parent 81b8451b8a
commit 626221c5a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -748,6 +748,8 @@ void WebServer::handle_cover_request(AsyncWebServerRequest *request, const UrlMa
call.set_command_close(); call.set_command_close();
} else if (match.method == "stop") { } else if (match.method == "stop") {
call.set_command_stop(); call.set_command_stop();
} else if (match.method == "toggle") {
call.set_command_toggle();
} else if (match.method != "set") { } else if (match.method != "set") {
request->send(404); request->send(404);
return; return;