Pascal Vizeli
2dbaedbda2
Simplify condition check - remove redundant bufsize > 0 check
...
The bufsize > 0 check is redundant because the previous if statement
already handles all cases where bufsize <= 0, ensuring that by the time
we reach this condition, bufsize is always positive.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2025-12-15 12:17:47 +00:00
Pascal Vizeli
c4d9ed7b70
[http_request] Fix infinite loop on read error in update component
...
The update component had the same infinite loop issue as the OTA component
when network read errors occurred. If container->read() returned an error
(negative value), it would be added to read_index and the loop would continue
indefinitely since get_bytes_read() would never reach content_length.
This fix breaks out of the read loop on any read error (read_bytes <= 0),
preventing watchdog resets and infinite loops during manifest downloads.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2025-12-14 17:06:53 +00:00
Pascal Vizeli
f20f3e0525
[http_request] Fix infinite loop when server doesn't send Content-Length header
...
This commit fixes an issue where the http_request component would enter
an infinite loop when an HTTP server doesn't send a Content-Length header
or closes the connection prematurely.
The read loop was assuming read operations would always return data, but:
1. When the stream pointer becomes invalid (connection closed), read() returns -1
2. When no more data is available, read() returns 0
Without these checks, the loop would continue indefinitely, causing:
- "Stream pointer vanished!" errors (Arduino platform)
- CPU spinning on zero-byte reads
- Watchdog timeouts
The fix adds validation checks to break out of read loops when
read() returns <= 0 (covering both error and end-of-stream conditions).
This is applied to:
- Response capture loops (http_request.h)
- OTA firmware download loop (ota_http_request.cpp)
- MD5 verification download loop (ota_http_request.cpp)
This allows graceful handling of non-compliant HTTP servers while
maintaining compatibility with properly formatted responses.
Fixes esphome/issues#6682
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2025-12-14 16:18:37 +00:00
J. Nick Koston
e0ce66e011
[core] Fix CORE.raw_config not updated after package merge ( #12456 )
2025-12-13 07:38:31 -06:00
David Woodhouse
6fce0a6104
Add host platform support to MD5 component ( #12458 )
2025-12-13 02:50:34 +00:00
David Woodhouse
ff7651875e
Add HMAC-MD5 component tests ( #12459 )
2025-12-12 19:19:31 -06:00
David Woodhouse
1a43a06dd4
Add USE_SHA256 define to sha256 component to enable tests ( #12457 )
2025-12-12 19:15:50 -06:00
dependabot[bot]
51b187954a
Bump ruff from 0.14.8 to 0.14.9 ( #12448 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2025-12-12 19:20:06 +00:00
dependabot[bot]
9126b32c35
Bump actions/cache from 4.3.0 to 5.0.1 in /.github/actions/restore-python ( #12453 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:17:08 -06:00
dependabot[bot]
4993bb2f49
Bump github/codeql-action from 4.31.7 to 4.31.8 ( #12451 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:16:41 -06:00
dependabot[bot]
2b40af3459
Bump actions/cache from 4.3.0 to 5.0.1 ( #12450 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:16:29 -06:00
dependabot[bot]
b3e967a233
Bump actions/download-artifact from 6.0.0 to 7.0.0 ( #12449 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:15:41 -06:00
dependabot[bot]
26a08e3ae3
Bump actions/upload-artifact from 5.0.0 to 6.0.0 ( #12452 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-12 13:15:28 -06:00
Jonathan Swoboda
64d650c65c
Merge branch 'beta' into dev
2025-12-12 12:15:52 -05:00
Jonathan Swoboda
375e53105f
Merge pull request #12444 from esphome/bump-2025.12.0b2
...
2025.12.0b2
2025.12.0b2
2025-12-12 12:15:41 -05:00
Jonathan Swoboda
c9506b056d
Bump version to 2025.12.0b2
2025-12-12 11:12:58 -05:00
Jonathan Swoboda
2c77668a05
[http_request] Skip update check when network not connected ( #12418 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-12 11:12:58 -05:00
J. Nick Koston
5567d96dd9
[esp8266] Eliminate up to 16ms socket latency ( #12397 )
2025-12-12 11:12:58 -05:00
J. Nick Koston
78b76045ce
[api] Fix potential buffer overflow in noise PSK base64 decode ( #12395 )
2025-12-12 11:12:58 -05:00
J. Nick Koston
1d13d18a16
[light] Add zero-copy support for API effect commands ( #12384 )
2025-12-12 11:12:58 -05:00
Jonathan Swoboda
d30d8156c1
[http_request] Skip update check when network not connected ( #12418 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-12 10:31:17 -05:00
dependabot[bot]
8d1e68c4c1
Bump tornado from 6.5.2 to 6.5.3 ( #12430 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-11 17:53:12 -06:00
J. Nick Koston
74218bc742
[api] Release prologue memory after noise handshake completes ( #12412 )
2025-12-10 19:33:22 -06:00
J. Nick Koston
369cc70fdf
[climate] Save 48 bytes per entity by conditionally compiling visual overrides ( #12406 )
2025-12-10 19:10:42 -06:00
dependabot[bot]
1f0a27b181
Bump codecov/codecov-action from 5.5.1 to 5.5.2 ( #12408 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 22:34:24 +01:00
dependabot[bot]
22918d3bd5
Bump peter-evans/create-pull-request from 7.0.11 to 8.0.0 ( #12409 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 22:21:29 +01:00
J. Nick Koston
7a9fce90cb
[text] Add integration tests for text command API ( #12401 )
2025-12-10 12:13:40 -05:00
dependabot[bot]
d1d376ebc8
Bump actions/create-github-app-token from 2.2.0 to 2.2.1 ( #12370 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-10 13:05:01 +01:00
J. Nick Koston
c124d72ea9
[esp8266] Eliminate up to 16ms socket latency ( #12397 )
2025-12-10 03:45:27 +00:00
J. Nick Koston
567e82cfec
[api] Fix potential buffer overflow in noise PSK base64 decode ( #12395 )
2025-12-10 04:20:23 +01:00
J. Nick Koston
b1f9100b02
[core] Add constexpr parse_hex_char helper and simplify parse_hex ( #12394 )
2025-12-10 04:20:08 +01:00
J. Nick Koston
d0fbc82f47
[esp32_ble_client] Use stack-based MAC formatting in auth logging ( #12393 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-10 04:19:52 +01:00
J. Nick Koston
03c391bd43
[light] Add zero-copy support for API effect commands ( #12384 )
2025-12-10 04:19:29 +01:00
Jonathan Swoboda
5601a2b686
Merge branch 'beta' into dev
2025-12-09 21:34:12 -05:00
Jonathan Swoboda
a3a2a6d965
Merge pull request #12396 from esphome/bump-2025.12.0b1
...
2025.12.0b1
2025.12.0b1
2025-12-09 21:33:58 -05:00
Jonathan Swoboda
84d5348bd8
Bump version to 2026.1.0-dev
2025-12-09 20:08:35 -05:00
Jonathan Swoboda
26770e09dc
Bump version to 2025.12.0b1
2025-12-09 20:08:35 -05:00
Javier Peletier
9f2693ead5
[core] Packages refactor and conditional package inclusion (package refactor part 1) ( #11605 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2025-12-10 00:59:58 +01:00
J. Nick Koston
3642399460
[tests] Fix clang-tidy warnings in custom_api_device_component fixture ( #12390 )
2025-12-10 00:50:26 +01:00
J. Nick Koston
3a6edbc2c7
[micronova] Fix test UART package key to match directory name ( #12391 )
2025-12-10 00:49:44 +01:00
J. Nick Koston
608f834eaa
[ci] Isolate usb_cdc_acm in component tests due to tinyusb/usb_host conflict ( #12392 )
2025-12-10 00:49:29 +01:00
J. Nick Koston
5919355d18
[ci] Allow memory impact target branch build to fail without blocking CI ( #12381 )
2025-12-10 00:26:24 +01:00
dependabot[bot]
1e23b10eed
Bump aioesphomeapi from 43.1.0 to 43.2.1 ( #12385 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-12-09 22:02:42 +00:00
Clyde Stubbs
ad0218fd40
[mipi_rgb] Add Waveshare 3.16 ( #12309 )
2025-12-10 08:17:59 +11:00
Clyde Stubbs
87142efbb4
[epaper_spi] Set reasonable default update interval ( #12331 )
2025-12-10 06:42:11 +11:00
Robert Resch
329b38fa29
[micronova] Require memory location and address for custom entities ( #12371 )
2025-12-09 14:30:55 -05:00
Jonathan Swoboda
4b44c7384b
Merge branch 'release' into dev
2025-12-09 12:54:45 -05:00
Jonathan Swoboda
a593965372
Merge pull request #12380 from esphome/bump-2025.11.5
...
2025.11.5
2025.11.5
2025-12-09 12:54:30 -05:00
Jonathan Swoboda
4743e5592a
Bump version to 2025.11.5
2025-12-09 12:02:53 -05:00
Jonathan Swoboda
464607011c
[mqtt] Fix logger method case sensitivity error ( #12379 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-12-09 12:02:53 -05:00