This commit is contained in:
J. Nick Koston 2025-06-29 16:03:05 -05:00
parent 5c0d67ca14
commit ad2d48e9b7
No known key found for this signature in database
4 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,6 @@ async def to_code(config):
# Check if web_server component has OTA enabled
web_server_config = CORE.config.get("web_server", {})
if web_server_config and web_server_config[CONF_OTA]:
if web_server_config and web_server_config[CONF_OTA] and "ota" in CORE.config:
# Add multipart parser component for ESP-IDF OTA support
add_idf_component(name="zorxx/multipart-parser", ref="1.0.1")

View File

@ -1,4 +1,5 @@
#pragma once
#include "esphome/core/defines.h"
#ifdef USE_ESP_IDF
#ifdef USE_WEBSERVER_OTA

View File

@ -1,3 +1,4 @@
#include "esphome/core/defines.h"
#ifdef USE_ESP_IDF
#ifdef USE_WEBSERVER_OTA
#include "multipart_reader.h"

View File

@ -1,4 +1,5 @@
#pragma once
#include "esphome/core/defines.h"
#ifdef USE_ESP_IDF
#ifdef USE_WEBSERVER_OTA