mirror of
https://github.com/esphome/esphome.git
synced 2025-08-06 18:37:47 +00:00
cleanup
This commit is contained in:
parent
78fd0a4870
commit
d73fa370f3
@ -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")
|
||||
|
@ -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 {
|
||||
|
@ -17,3 +17,5 @@ dependencies:
|
||||
version: 2.0.11
|
||||
rules:
|
||||
- if: "target in [esp32h2, esp32p4]"
|
||||
zorxx/multipart-parser:
|
||||
version: 1.0.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user