From 4be81c35cdcb188e051f7b410d18e25ffa8c7495 Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Thu, 9 Jul 2026 15:56:24 -0500 Subject: [PATCH] Consolidate http_request block into Core.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The http_request component config (verify_ssl + the OTA-download buffer sizes buffer_size_rx/tx) was duplicated identically across MSR-1.yaml, MSR-1_BLE.yaml, and MSR-1_Factory.yaml. Move it to Core.yaml so there is one source of truth; the ota/update http_request PLATFORMS stay in the variants and use the shared component. No compiled-output change; does not publish. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- Integrations/ESPHome/Core.yaml | 11 +++++++++++ Integrations/ESPHome/MSR-1.yaml | 11 ----------- Integrations/ESPHome/MSR-1_BLE.yaml | 11 ----------- Integrations/ESPHome/MSR-1_Factory.yaml | 11 ----------- 4 files changed, 11 insertions(+), 33 deletions(-) diff --git a/Integrations/ESPHome/Core.yaml b/Integrations/ESPHome/Core.yaml index b274a24..d0bd823 100644 --- a/Integrations/ESPHome/Core.yaml +++ b/Integrations/ESPHome/Core.yaml @@ -64,6 +64,17 @@ web_server: port: 80 version: 3 +http_request: + verify_ssl: true + # GitHub release-asset downloads answer with a redirect carrying a + # ~3.6 KB Content-Security-Policy header; each header line must fit + # this buffer or the request fails with "HTTP_CLIENT: Out of buffer". + buffer_size_rx: 5120 + # The redirect target is a signed URL with a ~850-char query string; the + # follow-up request line must fit the TX buffer or esp_http_client_open + # fails with "Out of buffer" before sending anything. + buffer_size_tx: 2048 + api: encryption: on_client_connected: diff --git a/Integrations/ESPHome/MSR-1.yaml b/Integrations/ESPHome/MSR-1.yaml index 6d87396..7f32c74 100644 --- a/Integrations/ESPHome/MSR-1.yaml +++ b/Integrations/ESPHome/MSR-1.yaml @@ -45,17 +45,6 @@ web_server: port: 80 version: 3 -http_request: - verify_ssl: true - # GitHub release-asset downloads answer with a redirect carrying a - # ~3.6 KB Content-Security-Policy header; each header line must fit - # this buffer or the request fails with "HTTP_CLIENT: Out of buffer". - buffer_size_rx: 5120 - # The redirect target is a signed URL with a ~850-char query string; the - # follow-up request line must fit the TX buffer or esp_http_client_open - # fails with "Out of buffer" before sending anything. - buffer_size_tx: 2048 - safe_mode: update: diff --git a/Integrations/ESPHome/MSR-1_BLE.yaml b/Integrations/ESPHome/MSR-1_BLE.yaml index c026398..bd874fa 100644 --- a/Integrations/ESPHome/MSR-1_BLE.yaml +++ b/Integrations/ESPHome/MSR-1_BLE.yaml @@ -45,17 +45,6 @@ wifi: ap: ssid: "Apollo MSR1 Hotspot" -http_request: - verify_ssl: true - # GitHub release-asset downloads answer with a redirect carrying a - # ~3.6 KB Content-Security-Policy header; each header line must fit - # this buffer or the request fails with "HTTP_CLIENT: Out of buffer". - buffer_size_rx: 5120 - # The redirect target is a signed URL with a ~850-char query string; the - # follow-up request line must fit the TX buffer or esp_http_client_open - # fails with "Out of buffer" before sending anything. - buffer_size_tx: 2048 - safe_mode: update: diff --git a/Integrations/ESPHome/MSR-1_Factory.yaml b/Integrations/ESPHome/MSR-1_Factory.yaml index 55a5de7..a21e383 100644 --- a/Integrations/ESPHome/MSR-1_Factory.yaml +++ b/Integrations/ESPHome/MSR-1_Factory.yaml @@ -43,17 +43,6 @@ ota: - platform: http_request id: ota_managed -http_request: - verify_ssl: true - # GitHub release-asset downloads answer with a redirect carrying a - # ~3.6 KB Content-Security-Policy header; each header line must fit - # this buffer or the request fails with "HTTP_CLIENT: Out of buffer". - buffer_size_rx: 5120 - # The redirect target is a signed URL with a ~850-char query string; the - # follow-up request line must fit the TX buffer or esp_http_client_open - # fails with "Out of buffer" before sending anything. - buffer_size_tx: 2048 - safe_mode: update: