This commit is contained in:
J. Nick Koston 2025-06-29 15:35:59 -05:00
parent 78fd0a4870
commit d73fa370f3
No known key found for this signature in database
3 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from esphome.components.esp32 import add_idf_component, add_idf_sdkconfig_option
import esphome.config_validation as cv
from esphome.const import CONF_OTA
from esphome.core import CORE
CODEOWNERS = ["@dentra"]
@ -16,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.get("ota", True):
if web_server_config and web_server_config[CONF_OTA]:
# Add multipart parser component for ESP-IDF OTA support
add_idf_component(name="zorxx/multipart-parser", ref="1.0.1")

View File

@ -4,6 +4,7 @@
#include "multipart_parser_utils.h"
#include "esphome/core/log.h"
#include <cstring>
#include "multipart_parser.h"
namespace esphome {
namespace web_server_idf {

View File

@ -17,3 +17,5 @@ dependencies:
version: 2.0.11
rules:
- if: "target in [esp32h2, esp32p4]"
zorxx/multipart-parser:
version: 1.0.1