1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-03 18:42:23 +01:00
This commit is contained in:
J. Nick Koston
2025-06-29 22:24:28 -05:00
parent 8563a5785f
commit 727161f1db
4 changed files with 9 additions and 2 deletions

View File

@@ -186,11 +186,12 @@ void OTARequestHandler::handleRequest(AsyncWebServerRequest *request) {
#endif // USE_WEBSERVER_OTA
}
void WebServerBase::add_ota_handler() {
#ifdef USE_WEBSERVER_OTA
void WebServerBase::add_ota_handler() {
this->add_handler(new OTARequestHandler(this)); // NOLINT
#endif
}
#endif
float WebServerBase::get_setup_priority() const {
// Before WiFi (captive portal)
return setup_priority::WIFI + 2.0f;