mirror of
https://github.com/esphome/esphome.git
synced 2025-08-09 11:57:46 +00:00
fixes
This commit is contained in:
parent
5c0d67ca14
commit
ad2d48e9b7
@ -17,6 +17,6 @@ async def to_code(config):
|
|||||||
|
|
||||||
# Check if web_server component has OTA enabled
|
# Check if web_server component has OTA enabled
|
||||||
web_server_config = CORE.config.get("web_server", {})
|
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 multipart parser component for ESP-IDF OTA support
|
||||||
add_idf_component(name="zorxx/multipart-parser", ref="1.0.1")
|
add_idf_component(name="zorxx/multipart-parser", ref="1.0.1")
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "esphome/core/defines.h"
|
||||||
#ifdef USE_ESP_IDF
|
#ifdef USE_ESP_IDF
|
||||||
#ifdef USE_WEBSERVER_OTA
|
#ifdef USE_WEBSERVER_OTA
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include "esphome/core/defines.h"
|
||||||
#ifdef USE_ESP_IDF
|
#ifdef USE_ESP_IDF
|
||||||
#ifdef USE_WEBSERVER_OTA
|
#ifdef USE_WEBSERVER_OTA
|
||||||
#include "multipart_reader.h"
|
#include "multipart_reader.h"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
#include "esphome/core/defines.h"
|
||||||
#ifdef USE_ESP_IDF
|
#ifdef USE_ESP_IDF
|
||||||
#ifdef USE_WEBSERVER_OTA
|
#ifdef USE_WEBSERVER_OTA
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user