diff --git a/esphome/components/audio/__init__.py b/esphome/components/audio/__init__.py index 6c721652e1..066dcc312e 100644 --- a/esphome/components/audio/__init__.py +++ b/esphome/components/audio/__init__.py @@ -1,5 +1,5 @@ import esphome.codegen as cg -from esphome.components.esp32 import add_idf_component +from esphome.components.esp32 import add_idf_component, include_idf_component import esphome.config_validation as cv from esphome.const import CONF_BITS_PER_SAMPLE, CONF_NUM_CHANNELS, CONF_SAMPLE_RATE import esphome.final_validate as fv @@ -166,6 +166,9 @@ def final_validate_audio_schema( async def to_code(config): + # Re-enable ESP-IDF's HTTP client (excluded by default to save compile time) + include_idf_component("esp_http_client") + add_idf_component( name="esphome/esp-audio-libs", ref="2.0.3", diff --git a/esphome/components/nextion/display.py b/esphome/components/nextion/display.py index ffc509fc64..99c8f91429 100644 --- a/esphome/components/nextion/display.py +++ b/esphome/components/nextion/display.py @@ -149,6 +149,10 @@ async def nextion_set_brightness_to_code(config, action_id, template_arg, args): async def to_code(config): + if CORE.is_esp32: + # Re-enable ESP-IDF's HTTP client (excluded by default to save compile time) + esp32.include_idf_component("esp_http_client") + var = cg.new_Pvariable(config[CONF_ID]) await uart.register_uart_device(var, config)