J. Nick Koston
12c35c1545
Compute the object id hash when an external caller passes 0
2026-10-12 16:53:49 -10:00
J. Nick Koston
00f8e89f28
Merge remote-tracking branch 'origin/dev' into esp8266-entity-names-flash
2026-10-12 16:49:42 -10:00
J. Nick Koston
72ca565a0e
[core] Resume if and while from the end of their branch instead of an embedded continuation action ( #20283 )
2026-10-12 13:35:03 -10:00
J. Nick Koston
eb8a793f6e
[core] Add a name truncation helper and keep the MAC suffix in the nRF52 BLE name ( #19768 )
2026-10-11 20:22:11 -10:00
J. Nick Koston
f8076fe90b
[core] Add UnavoidableBlockingScope for blocking that cannot be shortened ( #19020 )
2026-10-11 18:48:41 -10:00
J. Nick Koston
543a818307
Merge remote-tracking branch 'origin/dev' into esp8266-entity-names-flash
...
# Conflicts:
# esphome/components/uart/button/uart_button.cpp
# esphome/components/uart/switch/uart_switch.cpp
2026-10-11 15:36:07 -10:00
Frédéric Metrich and Claude Opus 5.5
2ef95bbc28
[core] Copy trigger arguments in wait_until and script.wait ( #20536 )
...
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com >
2026-10-11 21:22:52 +00:00
J. Nick Koston
86af0af0e4
[core] Add sum_bytes() and use it for the additive byte checksums components hand-roll ( #20507 )
2026-10-11 08:48:47 -10:00
J. Nick Koston
88f7fc7454
Allow progmem on any string field and split the ProgmemStringRef tests
...
Long or unforced progmem strings encode through encode_progmem_bytes, which
API action strings need. The ProgmemStringRef tests move to their own file.
2026-10-08 20:04:18 -10:00
J. Nick Koston
140488723d
Keep get_name() returning a reference off ESP8266
...
ProgmemStringRef now holds a StringRef, so get_name() and friendly_name_() can
keep returning const StringRef & on other platforms. External components that
return get_name() from a const StringRef & getter would otherwise return a
reference to a temporary. friendly_name_() is deprecated there, not removed.
2026-10-08 19:55:29 -10:00
J. Nick Koston
a721574706
Hash the RAM fallback name directly and share the short string encoder
...
Only unnamed entities hash at runtime, and their fallback name is in RAM, so
configure_entity_ hashes it before wrapping and named entities keep the codegen
hash; fnv1_hash_object_id_P is no longer needed. On ESP8266 the short string
encoder uses the outlined flash safe copy for RAM strings too.
2026-10-08 18:32:39 -10:00
J. Nick Koston
13057b7ae3
Type the API progmem name field as ProgmemStringRef
...
Progmem string fields must take the short encode path, the outlined encode
helper takes a ProgmemStringRef, and the hasher test checks the Python value.
2026-10-08 18:22:29 -10:00
J. Nick Koston
b4289aee59
Add a flash safe fnv1_hash_object_id_P()
...
calc_object_id_() hashes the name in place instead of copying it into a
stack buffer first.
2026-10-08 18:11:36 -10:00
J. Nick Koston
93aecdd435
Deprecate Sprinkler::valve_name() and guard ProgmemStringRef::write_to
...
valve_name() returned a flash pointer on ESP8266; it now follows get_name():
static_assert there, deprecated elsewhere, with valve_log_name() for logs.
2026-10-08 17:58:37 -10:00
J. Nick Koston
cf96c53279
[espnow] Keep constant send payloads in shared flash tables ( #20271 )
2026-10-07 05:40:12 -10:00
J. Nick Koston
80dc93d6ce
[core] [select] Keep select options in flash with a shared ConstVector ( #20117 )
2026-10-05 19:24:31 -05:00
J. Nick Koston
f334b9ea11
[core] Decode base64 in a single pass ( #20123 )
2026-10-05 10:54:17 -05:00
J. Nick Koston
9f5ac44db1
[api] Default response only string fields to a null StringRef ( #19025 )
2026-09-24 15:52:37 +01:00
J. Nick Koston
c51020dbaf
[core] Add RAMAllocator::make_unique for objects whose allocation may fail ( #19245 )
2026-09-14 09:56:50 +12:00
J. Nick Koston
4f0faac148
[core] Add FixedVector::try_init so callers can handle an exhausted heap ( #19253 )
2026-09-14 09:16:37 +12:00
J. Nick Koston
03147bc3b1
[core] Avoid double promotion in update interval and step formatting ( #18825 )
2026-08-28 15:12:50 -05:00
J. Nick Koston
16d0fa1165
[core] Add step_to_accuracy_decimals benchmarks ( #18826 )
2026-08-27 15:28:04 -05:00
J. Nick Koston
41171e61d1
[core] Keep str_contains_ignore_case needle literals in flash on ESP8266 ( #18574 )
2026-08-24 11:29:05 +12:00
J. Nick Koston
9179fe26ce
[api] Fix loop stall that triggers the task watchdog when entity list sends block ( #18577 )
2026-08-24 08:38:19 +12:00
guillempages and J. Nick Koston
46f90d0c54
[core] Add portable strcasestr implementation named str_contains_ignore_case ( #18497 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-08-20 17:28:17 -05:00
J. Nick Koston
7362c01c67
[core] Replace base64 lookup tables with arithmetic mapping ( #18454 )
2026-08-17 16:14:06 -05:00
J. Nick Koston
e90b4abe9c
[core] Enforce the preferences contracts with concepts ( #18191 )
2026-08-10 11:20:24 -05:00
J. Nick Koston
e58ba59288
[core] Add StringRef::starts_with ( #18142 )
2026-08-06 20:58:41 -05:00
J. Nick Koston
97558ce64a
[core] Add EventPool::warm() ( #18127 )
2026-08-06 20:40:04 -05:00
Bonne Eggleston
3b6f45894b
[core] StaticVector converting ctor ( #18117 )
2026-08-05 21:20:37 -05:00
J. Nick Koston
4f058585bb
[rp2040_ble] Add controller scan primitives ( #18001 )
2026-08-03 11:14:34 -05:00
Jesse Hills
ce6c122449
[core] Move JSON string escaping into helpers ( #17879 )
2026-07-27 22:16:57 -04:00
Edvard Filistovič and J. Nick Koston
d12300679e
[bk72xx_ble] Scan primitives and main-task scan report queue ( #17802 )
...
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-07-24 00:26:33 -10:00
J. Nick Koston
699cf9690a
[core] Optimize value_accuracy_to_buf to avoid snprintf ( #15596 )
2026-04-22 16:31:34 +12:00
43c6b839cd
[sensor] Filter to round to significant digits ( #11157 )
...
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
Co-authored-by: J. Nick Koston <nick+github@koston.org >
2026-04-21 14:00:03 +00: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
0c5f055d45
[core] cpp tests: Allow customizing code generation during tests ( #14681 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-03-18 00:16:01 +00:00