J. Nick Koston
c75b7de2d3
[esp32_ble_client] Let failed OPEN_EVT in DISCONNECTING state fall through to existing handler
...
Instead of a separate early-return for DISCONNECTING state, let the
failed OPEN_EVT fall through to the existing failed-status handler
which already transitions to IDLE.
2026-02-23 09:32:13 -06:00
J. Nick Koston
246d455dc3
[esp32_ble_client] Complete disconnection on failed OPEN_EVT in DISCONNECTING state
...
When a connection fails to establish, the ESP-IDF stack sends
DISCONNECT_EVT followed by OPEN_EVT with a failure status (e.g. 133).
No CLOSE_EVT follows since no GATT connection was established.
Previously the OPEN_EVT in DISCONNECTING state was silently ignored,
leaving the client stuck in DISCONNECTING forever. Now we treat this
failed OPEN_EVT as the terminal event and transition to IDLE.
2026-02-23 09:28:50 -06:00
J. Nick Koston
3ae3242362
[esp32_ble_client] Defer IDLE transition from DISCONNECT_EVT to CLOSE_EVT
...
ESP_GATTC_DISCONNECT_EVT only indicates that the link-layer disconnection
has started, not that the controller has fully freed resources (L2CAP
channels, ATT resources, HCI connection handle). Transitioning to IDLE
immediately allowed reconnection attempts before cleanup was complete,
causing the controller to reject new connections with status=133
(ESP_GATT_CONN_FAIL_ESTABLISH) or crash with ASSERT_PARAM in lld_evt.c.
This applies the same fix that was made for bluetooth_proxy in #10303
to the base BLEClientBase class, which is used by the ble_client
component.
Changes:
- DISCONNECT_EVT now transitions to DISCONNECTING instead of IDLE
- CLOSE_EVT (already existing) handles the final IDLE transition
- connect() now blocks while in DISCONNECTING state
- OPEN_EVT ignores events received during DISCONNECTING state
2026-02-22 15:42:39 -06:00
J. Nick Koston
1753074eef
[web_server_base] Remove unnecessary Component inheritance and modernize ( #14204 )
2026-02-23 10:01:07 +13:00
Edward Firmo
e013b48675
[nextion] Add error log for failed HTTP status during TFT upload ( #14190 )
2026-02-21 23:44:06 -06:00
J. Nick Koston
49e4ae54be
[bme68x_bsec2] Fix compilation on ESP32 Arduino ( #14194 )
2026-02-22 05:22:59 +00:00
J. Nick Koston
d5c9c56fdf
[platformio] Add exponential backoff and session reset to download retries ( #14191 )
2026-02-21 19:41:43 -06:00
J. Nick Koston
a468261523
[scheduler] De-template and consolidate scheduler helper functions ( #14164 )
2026-02-21 19:41:26 -06:00
J. Nick Koston
462ac29563
[scheduler] Use relaxed memory ordering for atomic reads under lock ( #14140 )
2026-02-21 17:29:41 -06:00
J. Nick Koston
6f198adb0c
[scheduler] Reduce lock acquisitions in process_defer_queue_ ( #14107 )
2026-02-21 14:29:50 -06:00
J. Nick Koston
e521522b38
[haier] Fix uninitialized HonSettings causing API connection failures ( #14188 )
2026-02-21 13:54:43 -06:00
J. Nick Koston
5a07908dfa
[api] Fix build error when lambda returns StringRef in homeassistant.event data ( #14187 )
2026-02-21 13:54:20 -06:00
J. Nick Koston
9571a979eb
[ci] Suggest StringRef instead of std::string_view ( #14183 )
2026-02-21 13:53:45 -06:00
tomaszduda23
48ba007c22
[nrf52] print line number after crash in logs ( #14165 )
2026-02-21 14:16:20 -05:00
Clyde Stubbs
6ff17fbf7c
[epaper_spi] Fix color mapping for weact ( #14134 )
2026-02-22 04:17:54 +11:00
J. Nick Koston
416b97311b
[mqtt] Remove broken ESP8266 ssl_fingerprints option ( #14182 )
2026-02-21 11:12:35 -06:00
J. Nick Koston
7fb09da7cf
[dsmr] Add deprecated std::string overload for set_decryption_key ( #14180 )
2026-02-21 11:08:13 -06:00
Sxt Fov
6ecb01dedc
[cc1101] actions to change general and tuner settings ( #14141 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-02-21 08:45:15 -05:00
Clyde Stubbs
518f08b909
[mipi_dsi] Disallow swap_xy ( #14124 )
2026-02-21 19:51:13 +11:00
Rodrigo Martín
2eac106f11
[mqtt] add missing precision in HA autodiscovery ( #14010 )
2026-02-20 23:20:27 -05:00
J. Nick Koston
f77da803c9
[api] Write protobuf encode output to pre-sized buffer directly ( #14018 )
2026-02-20 21:39:18 -06:00
J. Nick Koston
f8f98bf428
[logger] Reduce UART driver heap waste on ESP32 ( #14168 )
2026-02-21 03:16:49 +00:00
J. Nick Koston
abe37c9841
[uptime] Use scheduler millis_64() for rollover-safe uptime tracking ( #14170 )
2026-02-21 03:08:49 +00:00
J. Nick Koston
8589f80d8f
[api,ota,captive_portal] Fix fd leaks and clean up socket_ip_loop_monitored setup paths ( #14167 )
2026-02-20 20:59:49 -06:00
J. Nick Koston
0e38acd67a
[api] Warn when clients connect with outdated API version ( #14145 )
2026-02-20 19:21:56 -06:00
J. Nick Koston
a3f279c1cf
[usb_host] Implement disable_loop/enable_loop pattern for USB components ( #14163 )
2026-02-20 19:21:14 -06:00
J. Nick Koston
35037d1a5b
[core] Deduplicate base64 encode/decode logic ( #14143 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 19:20:58 -06:00
J. Nick Koston
d206c75b0b
[logger] Fix loop disable optimization using wrong preprocessor guard ( #14158 )
2026-02-20 19:20:44 -06:00
tomaszduda23
1d3054ef5e
[nrf52,logger] Early debug ( #11685 )
2026-02-20 16:12:50 -06:00
Jonathan Swoboda
db6aa58f40
[max7219digit] Fix typo in action names ( #14162 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 16:06:46 -05:00
Pawelo
48115eca18
[safe_mode] Extract RTC_KEY constant for shared use ( #14121 )
...
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2026-02-20 14:08:31 -06:00
dependabot[bot]
edfc3e3501
Bump ruff from 0.15.1 to 0.15.2 ( #14159 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-02-20 19:32:41 +00:00
dependabot[bot]
1a37632891
Bump pylint from 4.0.4 to 4.0.5 ( #14160 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-20 19:27:45 +00:00
dependabot[bot]
b85a49cdb3
Bump github/codeql-action from 4.32.3 to 4.32.4 ( #14161 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-02-20 13:27:15 -06:00
Jonathan Swoboda
9c0eed8a67
[e131] Remove dead LWIP TCP code path from loop() ( #14155 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-02-20 17:03:39 +00:00
Jonathan Swoboda
887375ebef
Merge branch 'release' into dev
2026-02-20 11:24:25 -05:00
Jonathan Swoboda
49356f4132
Merge pull request #14151 from esphome/bump-2026.2.1
...
2026.2.1
2026.2.1
2026-02-20 11:24:11 -05:00
Jonathan Swoboda
403235e2d4
[wifi] Add band_mode configuration for ESP32-C5 dual-band WiFi ( #14148 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 11:20:29 -05:00
Jonathan Swoboda
9ce01fc369
[esp32] Add engineering_sample option for ESP32-P4 ( #14139 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 11:20:05 -05:00
J. Nick Koston
b0a35559b3
[esp32] Bump ESP-IDF to 5.5.3.1, revert GATTS workaround ( #14147 )
2026-02-20 10:19:01 -06:00
Jonathan Swoboda
8aaf0b8d85
Bump version to 2026.2.1
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
28d510191c
[ld2410/ld2450] Replace header sync with buffer size increase for frame resync ( #14138 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
4c8e0575f9
[ld2420] Increase MAX_LINE_LENGTH to allow footer-based resync ( #14137 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
49afe53a2c
[ld2410] Add frame header synchronization to readline_() ( #14136 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
d19c1b689a
[ld2450] Add frame header synchronization to fix initialization regression ( #14135 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
e7e1acc0a2
[pulse_counter] Fix PCNT glitch filter calculation off by 1000x ( #14132 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
J. Nick Koston
7bdeb32a8a
[uart] Always call pin setup for UART0 default pins on ESP-IDF ( #14130 )
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
f412ab4f8b
[wifi] Sync output_power with PHY max TX power to prevent brownout ( #14118 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
Jonathan Swoboda
0fc09462ff
[safe_mode] Log brownout as reset reason on OTA rollback ( #14113 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00
J. Nick Koston
d78496321e
[esp32_ble] Enable CONFIG_BT_RELEASE_IRAM on ESP32-C2 ( #14109 )
...
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-20 10:17:12 -05:00