Commit Graph

23313 Commits

Author SHA1 Message Date
J. Nick Koston
a893c2936b Merge branch 'update_rp2040_arduino_pico_5_5_0' into integration 2026-02-26 11:42:09 -10:00
J. Nick Koston
23a2e4c92d [wifi] Restore original CYW43 STA mode setup in wifi_mode_
Restore the cyw43_wifi_set_up() call for STA mode that was incorrectly
removed. Without this, cyw43_wifi_scan() fails on initial boot because
the radio isn't initialized - scanning must work before the first
beginNoBlock() call.
2026-02-26 11:41:29 -10:00
J. Nick Koston
7e1d25859c [wifi] Enable CYW43 STA mode before scanning on RP2040
Call cyw43_arch_enable_sta_mode() in wifi_mode_() when STA is requested.
Without this, cyw43_wifi_scan() fails on initial boot because the radio
isn't initialized yet - it only got enabled later inside beginNoBlock().
This caused the state machine to skip scanning, fall through to
RETRY_HIDDEN, and do a wasteful blind SSID-only connect for non-hidden
networks.
2026-02-26 11:39:42 -10:00
J. Nick Koston
300ecff78f Merge remote-tracking branch 'origin/integration' into integration 2026-02-26 11:24:10 -10:00
J. Nick Koston
bd0e8914ae Merge branch 'update_rp2040_arduino_pico_5_5_0' into integration 2026-02-26 11:24:00 -10:00
J. Nick Koston
7ad44c68f7 [wifi] Fix CYW43 scan SSID not null-terminated
The cyw43_ev_scan_result_t ssid field is a 32-byte buffer that is
not guaranteed to be null-terminated. Use ssid_len to properly
terminate the string before passing it to string comparison functions.

This fixes false "should be marked hidden" warnings where the SSID
match failed due to garbage bytes after the actual SSID in the buffer.
2026-02-26 11:23:41 -10:00
J. Nick Koston
1f433f4355 Merge branch 'update_rp2040_arduino_pico_5_5_0' into integration 2026-02-26 11:23:02 -10:00
J. Nick Koston
bd13a0aa8f Merge branch 'update_rp2040_arduino_pico_5_5_0' into integration 2026-02-26 11:19:36 -10:00
J. Nick Koston
ec132fb081 [rp2040] Update arduino-pico framework from 3.9.4 to 5.5.0
Update the RP2040 Arduino-Pico framework to 5.5.0 (from 3.9.4) and
the platform to v1.4.0-gcc14-arduinopico460 (GCC 14 toolchain).

Breaking changes adapted:
- pico-sdk 2.0: padsbank0_hw renamed to pads_bank0_hw
- Arduino.h now defines NOPIN as a global macro (SerialPIO::NOPIN removed)
- WiFi: cyw43_tcpip_link_status() no longer works because the Arduino
  framework's __wrap_cyw43_cb_tcpip_init is a no-op (the SDK's internal
  netif is never initialized). Switched to cyw43_wifi_link_status() for
  radio state + WiFi.status()/WiFi.connected() for IP-level state.
- WiFi: Use beginNoBlock() instead of begin() to avoid 20s+ blocking
- WiFi: Use WiFi.disconnect() for proper lwIP/DHCP cleanup
2026-02-26 10:54:35 -10:00
J. Nick Koston
8a474c9d23 Merge branch 'libretiny_bk72xx_os_optimization' into integration 2026-02-26 09:29:29 -10:00
J. Nick Koston
c4b4d386da [libretiny] Use -Os for ESPHome source on BK72xx
LibreTiny forces -O1 globally for BK72xx because the Beken SDK
has issues with higher optimization levels. ESPHome code works
fine with -Os (used on every other platform), so override it
for project source files only via build_src_flags.

Also show both optimization levels in the debug banner when they
differ (e.g., "Optimization: -Os, SDK: -O1").
2026-02-26 09:16:08 -10:00
J. Nick Koston
9f1cc209d2 Merge branch 'extend_ultra_low_latency_select_libretiny' into integration 2026-02-26 08:45:13 -10:00
J. Nick Koston
2b25245a30 Merge branch 'dev' into extend_ultra_low_latency_select_libretiny 2026-02-26 11:25:53 -07:00
J. Nick Koston
ae16c3bae7 Add socket compile tests for libretiny platforms (#14314) 2026-02-26 08:25:36 -10:00
J. Nick Koston
be000eab4e [ci] Add undocumented C++ API change checkbox and auto-label (#14317) 2026-02-26 08:02:52 -10:00
J. Nick Koston
da93485ae2 dry 2026-02-26 06:40:38 -10:00
J. Nick Koston
0bfb294f32 Update comments to reflect multi-platform fast select scope
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 06:38:23 -10:00
J. Nick Koston
4c4a22b0c0 drop compile tests move to other pr 2026-02-26 06:30:30 -10:00
J. Nick Koston
3e50a22c76 Merge remote-tracking branch 'upstream/dev' into extend_ultra_low_latency_select_libretiny
# Conflicts:
#	esphome/components/socket/__init__.py
#	esphome/core/application.cpp
#	esphome/core/application.h
#	esphome/core/lwip_fast_select.c
#	esphome/core/lwip_fast_select.h
#	tests/components/socket/test_wake_loop_threadsafe.py
2026-02-26 06:27:15 -10:00
J. Nick Koston
a05d0202e6 [core] ESP32: massively reduce main loop socket polling overhead by replacing select() (#14249) 2026-02-26 06:21:27 -10:00
Jonathan Swoboda
6c253f0c71 [sprinkler] Fix millis overflow and underflow bugs (#14299)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-02-26 08:40:43 -05:00
J. Nick Koston
962cbfb9d8 [safe_mode] Mark SafeModeComponent and SafeModeTrigger as final (#14282) 2026-02-25 22:14:53 -05:00
J. Nick Koston
d52f8c9c6f [web_server] Mark classes as final (#14283) 2026-02-25 22:14:33 -05:00
J. Nick Koston
ee4d67930f [api] Mark ListEntitiesIterator and InitialStateIterator as final (#14284) 2026-02-25 22:14:16 -05:00
J. Nick Koston
cced0a82b5 [ota] Mark OTA backend and component leaf classes as final (#14287) 2026-02-25 22:14:04 -05:00
J. Nick Koston
478a876b01 [mdns] Mark MDNSComponent as final (#14290) 2026-02-25 22:13:51 -05:00
J. Nick Koston
789da5fdf8 [logger] Mark Logger and LoggerMessageTrigger as final (#14291) 2026-02-25 22:13:44 -05:00
Jesse Hills
bd08a56210 Merge branch 'release' into dev 2026-02-26 15:17:16 +13:00
Jesse Hills
f7843582e8 Merge pull request #14303 from esphome/bump-2026.2.2
2026.2.2
2026.2.2
2026-02-26 15:16:33 +13:00
Jesse Hills
2c749e9dbe Bump version to 2026.2.2 2026-02-26 13:45:13 +13:00
Jonathan Swoboda
8479664df1 [sensor] Fix delta filter percentage mode regression (#14302)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Jonathan Swoboda
5a1d6428b2 [hmc5883l] Fix wrong gain for 88uT range (#14281)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Jonathan Swoboda
a39be5a461 [rtttl] Fix speaker playback bugs (#14280)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Jonathan Swoboda
da930310b1 [ld2420] Fix sizeof vs value bug in register memcpy (#14286)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Jonathan Swoboda
af296eb600 [pid] Fix deadband threshold conversion for Fahrenheit (#14268)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Jesse Hills
2c11c65faf Don't get stuck forever on a failed component can_proceed (#14267) 2026-02-26 13:45:13 +13:00
Jonathan Swoboda
29d890bb0f [http_request.ota] Percent-encode credentials in URL (#14257)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-26 13:45:13 +13:00
Clyde Stubbs
efa39ae591 [mipi_dsi] Allow transform disable; fix warnings (#14216) 2026-02-26 13:45:13 +13:00
J. Nick Koston
4b57ac3236 [water_heater] Fix device_id missing from state responses (#14212) 2026-02-26 13:45:13 +13:00
J. Nick Koston
997f825cd3 [network] Improve IPAddress::str() deprecation warning with usage example (#14195) 2026-02-26 13:45:13 +13:00
J. Nick Koston
27fe866d5e [bme68x_bsec2] Fix compilation on ESP32 Arduino (#14194) 2026-02-26 13:45:13 +13:00
J. Nick Koston
c5c6ce6b0e [haier] Fix uninitialized HonSettings causing API connection failures (#14188) 2026-02-26 13:45:12 +13:00
J. Nick Koston
15e2a778d4 [api] Fix build error when lambda returns StringRef in homeassistant.event data (#14187) 2026-02-26 13:45:12 +13:00
J. Nick Koston
1f5a35a99f [dsmr] Add deprecated std::string overload for set_decryption_key (#14180) 2026-02-26 13:45:12 +13:00
Clyde Stubbs
0975755a9d [mipi_dsi] Disallow swap_xy (#14124) 2026-02-26 13:45:12 +13:00
Jonathan Swoboda
19f4845185 [max7219digit] Fix typo in action names (#14162)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 13:45:12 +13:00
J. Nick Koston
113b1554aa Merge remote-tracking branch 'upstream/dev' into integration 2026-02-25 17:39:57 -07:00
Jonathan Swoboda
0d5b7df77d [sensor] Fix delta filter percentage mode regression (#14302)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-25 19:32:02 -05:00
Jonathan Swoboda
534857db9c [wled] Fix millis overflow in blank timeout (#14300)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick+github@koston.org>
2026-02-25 18:01:49 -05:00
Jonathan Swoboda
0a81a7a50b [mcp2515] Fix millis overflow in set_mode_ timeout (#14298)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-25 18:01:32 -05:00