Franck Nijhof
19280e03ad
[core] Defer requests import in external_files and web_server_ota
...
Same pattern as framework_helpers: both modules imported requests at module
top level but only use it inside functions that perform actual network I/O
(downloading fonts/images, web_server OTA upload), never during config
validation. external_files is loaded by the font and audio_file components.
Defer the imports into the functions that use them, and update the tests to
patch requests.<method> directly (the modules no longer hold a requests
attribute). Adds regression tests guarding against re-introducing the
top-level imports.
2026-06-25 20:42:35 +00:00
Franck Nijhof
1ff519446b
[core] Guard deferred requests import and fix download test patch targets
...
Add a regression test asserting framework_helpers does not import requests
at module import time, and update the download_from_mirrors tests to patch
requests.get directly (the module no longer holds a requests attribute now
that the import is deferred into the function).
2026-06-25 19:04:41 +00:00
Jesse Hills
46cf052ec5
[config_validation] Fix multicast typo in error message ( #17206 )
2026-06-25 08:28:43 -04:00
Jesse Hills
8c68e95568
[config_validation] Add tests for 100% validator coverage ( #17204 )
2026-06-25 22:33:28 +12:00
Jonathan Swoboda
91e515ca7c
[esp32] Accept '#' as ESP-IDF source ref separator ( #17193 )
2026-06-24 20:40:28 -04:00
Jesse Hills
84de814e6f
[config_validation] Make bind_key a sensitive dual-mode validator ( #17146 )
2026-06-24 09:05:39 +12:00
Jonathan Swoboda
1d32b6c9e0
[espidf] Enable ccache by default for ESP-IDF builds ( #17163 )
2026-06-23 16:41:13 -04:00
Jonathan Swoboda
7763ce958d
[tests] Disable Hypothesis deadline on IP validation property tests ( #17138 )
2026-06-23 15:21:40 -04:00
Jesse Hills
225d426d95
[core] Use CORE.is_* platform helpers in __main__ ( #17144 )
2026-06-23 08:40:16 -04:00
Jonathan Swoboda
1ace836744
[espidf] Don't fail framework check on broken unrelated PATH tools ( #17053 )
2026-06-22 18:41:21 -04:00
Jesse Hills
d0e3e98d55
[dashboard] Remove legacy web dashboard ( #17124 )
2026-06-22 09:33:27 +12:00
J. Nick Koston
921758f87d
[core] Clarify resolve error when a device has no network log/OTA transport ( #17107 )
2026-06-21 15:00:55 -05:00
J. Nick Koston
d8f883bd9d
[core] Remove deprecated get_object_id() and get_compilation_time() ( #17112 )
2026-06-22 07:54:05 +12:00
Jonathan Swoboda
53e85e07d4
[esp32] Support esphome idedata with the native ESP-IDF toolchain ( #17040 )
2026-06-18 15:56:21 -04:00
J. Nick Koston and Copilot Autofix powered by AI
bd9375117a
[core] Honor transferred address cache in has_resolvable_address ( #17025 )
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-17 22:11:24 -05:00
Jesse Hills
c214a8ce79
[core] Add generic component alias infrastructure ( #16826 )
2026-06-18 01:21:00 +00:00
tomaszduda23 and Jonathan Swoboda
e3f164fff2
[nrf52] add support for native builds ( #16898 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-06-17 21:17:07 -04:00
Jesse Hills
d8fa0e4140
[core] Stop parent git repos from breaking ESP-IDF/PlatformIO builds ( #16994 )
2026-06-16 20:24:26 +12:00
Jonathan Swoboda
e191fc5d47
[core] Support platformio_options on the native ESP-IDF toolchain ( #16917 )
2026-06-15 10:56:03 +12:00
Jonathan Swoboda
1e5771a3fa
[esp32] Fix idedata generation failing on unset ESPHOME_ARDUINO ( #16925 )
2026-06-15 09:48:43 +12:00
J. Nick Koston
750cf1995b
[esp8266] Decode crash handler PC and backtrace in logs ( #16911 )
2026-06-11 08:47:50 -05:00
Jonathan Swoboda
29a79b1373
[core] Make set_cpp_standard work on the native IDF toolchain ( #16907 )
2026-06-11 07:25:03 +12:00
Clyde Stubbs and Claude Opus 4.8
dafc3560dd
[tests] Isolate ESPHOME_LOG_STATES in main logs-states tests ( #16905 )
...
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-10 07:44:58 -04:00
Jonathan Swoboda
6809af3de0
[espidf] Warn when the install path is too long for Windows MAX_PATH ( #16896 )
2026-06-10 13:12:28 +12:00
Jonathan Swoboda
4963ddcb95
[espidf] Fix idedata generation on Windows ( #16894 )
2026-06-10 13:09:50 +12:00
5faed9d5f5
[nrf52] native build - download toolchain and sdk in venv ( #16388 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
Co-authored-by: Jonathan Swoboda <swoboda1337@users.noreply.github.com >
2026-06-09 07:04:51 -04:00
Jonathan Swoboda
6996b7ed1c
[ci] Add ESP32 Variants clang-tidy run (S3/P4/C6) ( #16825 )
2026-06-05 22:03:08 -04:00
Jonathan Swoboda
8aa4157574
[fastled_base] Use FastLED IDF component on ESP32 ( #16804 )
2026-06-05 21:01:29 -04:00
Jonathan Swoboda
891ec33c94
[esp32] Deduplicate PlatformIO library conversion by resolving the batch together ( #16756 )
2026-06-04 07:39:17 -04:00
Jesse Hills
93f25258ee
[config] Add --no-defaults flag to config command ( #16718 )
2026-06-04 14:08:36 +12:00
Jonathan Swoboda
74a1ff9fc7
[esp32][core] Restore ESP-IDF version on logs/upload fast path and clean build on framework change ( #16770 )
2026-06-04 09:46:01 +12:00
Jonathan Swoboda
e4980713d1
[core] esphome clean wipes the whole build directory ( #16772 )
2026-06-03 07:35:23 -04:00
Clyde Stubbs
d7d20f4f6b
[cli] Allow state reporting control via env ( #16746 )
2026-06-02 07:04:35 +10:00
Jonathan Swoboda
6116d10ab1
[espidf] Derive idedata from the native ESP-IDF compile_commands.json ( #16742 )
2026-05-31 17:44:12 -04:00
Jonathan Swoboda
48844a68ba
[core] Clean build when the toolchain changes ( #16744 )
2026-05-31 16:29:16 -04:00
J. Nick Koston
f0202155b3
[core] Persist esphome.area in StorageJSON ( #16710 )
2026-05-30 00:09:07 -05:00
rwrozelle and Jonathan Swoboda
9a6157b469
[tests] Sandbox PlatformIO paths in test_writer to fix xdist race ( #16619 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-05-27 15:50:43 -04:00
J. Nick Koston
21e548f1d7
[core] Sensitive redaction via yaml_util representer ( #16690 )
2026-05-27 09:20:50 -05:00
J. Nick Koston
96816e2491
[core] Enable ruff DTZ (flake8-datetimez) lint family ( #16660 )
2026-05-26 15:29:38 -05:00
J. Nick Koston
bac62cb7de
[core] Add cv.sensitive marker for schema-level sensitive fields ( #16673 )
2026-05-26 15:29:06 -05:00
J. Nick Koston
ceb9d406e1
[core] Enable ruff PIE (flake8-pie) lint family ( #16658 )
2026-05-26 07:46:44 -04:00
Jesse Hills
423b60c90c
[packages] Resolve git symlinks on Windows when materialized as text ( #16657 )
2026-05-26 19:56:44 +12:00
J. Nick Koston
ae74920b81
[core] Enable ruff PTH (flake8-use-pathlib) lint family ( #16661 )
2026-05-26 05:14:42 +00:00
J. Nick Koston
ae814cff5c
[core] Enable ruff B (flake8-bugbear) lint family ( #16655 )
2026-05-26 02:28:14 +00:00
J. Nick Koston
489cf483d0
[core] Enable ruff PYI (flake8-pyi) lint family ( #16654 )
2026-05-25 20:55:35 -05:00
J. Nick Koston
e492f8f8b6
[tests] Disable hypothesis deadline on flaky IP address test ( #16652 )
2026-05-25 20:14:36 -05:00
J. Nick Koston
5172227931
[core] Enable ruff SLOT (flake8-slots) lint family ( #16647 )
2026-05-25 20:06:01 -05:00
Jonathan Swoboda
fc0a4e2201
[espidf] Support github:// and https://github.com/.../.git framework sources ( #16639 )
2026-05-25 17:07:35 -04:00
Jonathan Swoboda
98e7213387
[espidf] Warn instead of skipping libraries with framework mismatch ( #16630 )
2026-05-25 14:08:16 +00:00
Jesse Hills
62b0a93e5e
[rp2040] Add variant config option for RP2040/RP2350 ( #16602 )
2026-05-25 10:43:39 +12:00