J. Nick Koston
39eb8dbcf5
Revert "[debug] Add iram sensor for ESP32"
...
This reverts commit 07b129a58a .
2026-04-14 16:05:33 -10:00
J. Nick Koston
07cf968226
Merge remote-tracking branch 'upstream-ssh/debug-iram-sensor' into integration
2026-04-14 15:49:52 -10:00
J. Nick Koston
07b129a58a
[debug] Add iram sensor for ESP32
2026-04-14 15:47:48 -10:00
J. Nick Koston
80e29bc7b2
Merge remote-tracking branch 'upstream/optimize-value-accuracy' into integration
2026-04-14 15:01:45 -10:00
J. Nick Koston
f891ea3752
add tests
2026-04-14 14:54:51 -10:00
J. Nick Koston
2ccd94e1ad
add tests
2026-04-14 14:54:42 -10:00
J. Nick Koston
82232d8c74
Merge remote-tracking branch 'origin/optimize-value-accuracy' into integration
...
# Conflicts:
# esphome/core/application.cpp
# esphome/core/application.h
# tests/components/core/test_helpers.cpp
2026-04-14 14:45:20 -10:00
J. Nick Koston
5066171a9d
Address Copilot review: uint32 overflow guard, docstring, test namespace/include
2026-04-14 08:36:09 -10:00
J. Nick Koston
57d9e508ea
merge
2026-04-14 08:09:00 -10:00
J. Nick Koston
f4f56cfaaa
Merge remote-tracking branch 'upstream/dev' into optimize-value-accuracy
...
# Conflicts:
# esphome/core/helpers.h
# tests/components/core/test_helpers.cpp
2026-04-14 08:07:44 -10:00
J. Nick Koston
cf01163c8c
[core] Add uint32_to_str helper and use in preferences ( #15597 )
2026-04-14 07:49:44 -10:00
J. Nick Koston
2a530a4bf4
[core] Optimize format_hex_internal by splitting separator loop ( #15594 )
2026-04-14 07:48:33 -10:00
J. Nick Koston
6b4b653462
[globals] Fix TemplatableFn deprecation warning for globals.set ( #15733 )
2026-04-14 09:18:38 -04:00
J. Nick Koston
8255afaa60
Merge remote-tracking branch 'origin/globals-set-lambda-return-type' into integration
2026-04-13 22:21:25 -10:00
J. Nick Koston
a325df98da
[globals] Emit globals.set value lambda with declared global type
...
Pass the global's declared C++ type as the lambda return type so
TemplatableFn stores a direct function pointer instead of hitting the
deprecated converting trampoline when the value expression deduces to a
different type (e.g. an int literal or int-returning lambda assigned to
a float global).
2026-04-13 21:59:54 -10:00
J. Nick Koston
40c2ac2f8f
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-12 13:08:40 -10:00
Clyde Stubbs and Jesse Hills
8754bbfa89
[lvgl] Fix use of rotation on host SDL ( #15611 )
...
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com >
2026-04-12 20:29:11 +00:00
J. Nick Koston
09e544125a
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-12 10:07:28 -10:00
Jonathan Swoboda
45af21bf38
[canbus] Fix canbus.send can_id compile error ( #15668 )
2026-04-12 09:58:51 -10:00
J. Nick Koston
6f4a502dc2
Merge remote-tracking branch 'origin/optimize-format-hex' into integration
2026-04-09 21:51:04 -10:00
J. Nick Koston
1262b98fa1
Merge remote-tracking branch 'upstream/rp2040-ethernet-lwiplock-irq-defer' into integration
2026-04-09 21:48:20 -10:00
J. Nick Koston
17209df7b5
[mcp23016] Add interrupt pin support ( #15616 )
2026-04-10 15:29:52 +12:00
J. Nick Koston
9cf9b02ba2
[pca6416a] Add interrupt pin support ( #15614 )
2026-04-10 15:29:26 +12:00
J. Nick Koston
c90fa2378a
[tca9555] Add interrupt pin support ( #15613 )
2026-04-10 15:29:00 +12:00
J. Nick Koston
6fe6bf79d4
Address Copilot review: fix namespace and custom separator test
2026-04-09 09:30:06 -10:00
J. Nick Koston
a941422fa6
Add unit tests for format_hex helpers
2026-04-09 08:36:40 -10:00
J. Nick Koston
3b45179948
Split uint32_to_str/frac_to_str into internal and public API
...
- uint32_to_str_(): raw pointer, internal use
- uint32_to_str(): template with compile-time buffer size check
- frac_to_str_(): raw pointer, internal use
- small_pow10(): simplify to ternary chain
2026-04-08 21:01:32 -10:00
J. Nick Koston
e52c3b01e6
Extract buf_append_sep_str helper, add tests
2026-04-08 20:52:51 -10:00
J. Nick Koston
c8e636f253
Add unit tests for small_pow10, uint32_to_str, frac_to_str
2026-04-08 20:51:06 -10:00
J. Nick Koston
d8e586609f
[core] Optimize value_accuracy_to_buf to avoid snprintf
...
Replace snprintf("%.*f") with integer-based formatting for finite
float values with accuracy_decimals 0-3 (covers virtually all sensor
usage). Falls back to snprintf for higher accuracy or NaN/Inf.
Uses lrint() with double cast for the multiply to match snprintf's
rounding behavior exactly. The fast path avoids snprintf's heavy
float formatting machinery entirely.
Also optimizes value_accuracy_with_uom_to_buf to append the UOM
string directly instead of going through snprintf.
Adds C++ unit tests that verify output matches snprintf for a range
of values including edge cases.
Benchmark: 92,961ns -> 6,484ns (14.3x faster, 2000 iterations).
2026-04-08 20:46:16 -10:00
J. Nick Koston
d9ebe1e1e7
Merge branch 'crash-handler-dual-core' into integration
2026-04-08 09:34:33 -10:00
Clyde Stubbs
7de060ed55
[lvgl] Fix args for lambda in set_rotation action ( #15555 )
2026-04-09 07:22:24 +12:00
J. Nick Koston
2a79f91947
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-07 19:14:39 -10:00
J. Nick Koston
f278e12841
Merge remote-tracking branch 'upstream/templatable-value-specialize' into integration
2026-04-07 19:14:36 -10:00
Jonathan Swoboda
9bf53e0ab8
[esp32_hosted] Add SPI transport and SDIO 1-bit bus width support ( #15551 )
2026-04-08 03:17:58 +00:00
J. Nick Koston
e658a8559e
[ethernet] Add W6100 and W6300 support for RP2040 ( #15543 )
2026-04-07 16:57:05 -10:00
J. Nick Koston
de7f081799
[emontx] Fix uart package name in tests ( #15546 )
2026-04-07 21:52:37 -04:00
Clyde Stubbs
88f4067dd6
[lvgl] Implement rotation with PPA ( #15453 )
2026-04-08 13:19:29 +12:00
Clyde Stubbs
801f3fadaa
[epaper_spi] Fix deep sleep command ( #15544 )
2026-04-08 13:00:39 +12:00
J. Nick Koston
7d497e6b52
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-07 14:31:13 -10:00
14bcdfe700
[emontx] emonTx component ( #9027 )
...
Co-authored-by: Claude <noreply@anthropic.com >
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-04-07 22:29:55 +00:00
ee7b38504b
[nextion] Expose custom protocol frames as automation triggers ( #13248 )
...
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-04-07 22:13:58 +00:00
Jonathan Swoboda
17ec5389d8
[mcp4461] Fix terminal disable passing string where C++ expects char ( #15528 )
2026-04-07 11:07:28 -10:00
Jonathan Swoboda
9d396cea5a
[grove_tb6612fng] Move direction logic from Python to C++ to fix lambda crash ( #15513 )
2026-04-07 10:56:25 -10:00
J. Nick Koston
cf78b035be
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-07 08:53:34 -10:00
Diorcet Yann
7ab7538220
[hdc2080] Fix tests ( #15518 )
2026-04-06 21:59:05 -10:00
J. Nick Koston
e3e191b783
Merge remote-tracking branch 'upstream/dev' into integration
2026-04-06 16:23:07 -10:00
J. Nick Koston
7c671cd0e6
Merge branch 'api-proto-max-length' into integration
...
# Conflicts:
# esphome/components/api/api_connection.cpp
# esphome/components/api/api_pb2.cpp
# esphome/components/api/proto.h
# esphome/core/application.h
# esphome/core/component.cpp
# script/api_protobuf/api_protobuf.py
2026-04-06 14:02:14 -10:00
Jonathan Swoboda
29ca7bc8f9
[espnow] Fix string data generating invalid C++ char literals ( #15493 )
2026-04-06 19:57:16 -04:00
Clyde Stubbs
c98bb9060f
[lvgl] Fix setting triggers on display ( #15364 )
2026-04-07 10:48:14 +12:00