Commit Graph
26515 Commits
Author SHA1 Message Date
J. Nick Koston 63710a4cb7 [spi] Add spi0 and spi1 to reserved IDs for RP2040 compatibility (#15388) 2026-04-02 16:10:16 -04:00
c82166e5f3 [dsmr] Allow setting MBUS id for thermal sensors in DSMR component (#7519)
Co-authored-by: J. Nick Koston <nick@koston.org>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
2026-04-02 10:06:49 -10:00
Jonathan Swoboda 90624e6eca [deep_sleep] Fix wakeup_pin_mode rejecting lowercase on ESP32/BK72XX (#15384) 2026-04-02 09:34:27 -10:00
Jonathan Swoboda 6b89998b60 [template] Fix cover position_action overridden by has_position default (#15379) 2026-04-02 09:29:33 -10:00
Jonathan Swoboda dde472b0cf [pipsolar] Fix set_level action passing string to cv.use_id (#15380) 2026-04-02 09:28:44 -10:00
dependabot[bot]andJ. Nick Koston f7222a0e6c Bump ruff from 0.15.8 to 0.15.9 (#15385)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io>
2026-04-02 19:28:30 +00:00
Jonathan Swoboda 0262d20bbe [mlx90393] Remove call to non-existent set_drdy_pin method (#15381) 2026-04-02 09:26:47 -10:00
Jonathan Swoboda 37b33f62de [htu21d] Fix set_heater action reading wrong config key (#15378) 2026-04-02 09:25:54 -10:00
Jonathan Swoboda 2f405fd96f [espnow] Fix enable_on_boot config option not passed to C++ (#15377) 2026-04-02 09:25:15 -10:00
dependabot[bot] 67ee727e38 Bump docker/login-action from 4.0.0 to 4.1.0 in the docker-actions group (#15386)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-02 09:24:26 -10:00
Jonathan Swoboda 12a0f5959f [bl0940] Fix reference_voltage config ignored in non-legacy mode (#15375) 2026-04-02 09:23:04 -10:00
Jonathan Swoboda 5dcae1a133 [climate] Fix MQTT target_temperature_low_state_topic calling wrong setter (#15376) 2026-04-02 09:22:07 -10:00
Jonathan Swoboda 0343121e9b [ble_client] Fix descriptor_uuid ignored for text sensors (#15374) 2026-04-02 09:21:18 -10:00
J. Nick Koston da09e1e1ce [time] Use O(1) closed-form leap year math for epoch-to-year conversion (#15368) 2026-04-02 09:19:47 -10:00
Jonathan Swoboda e7e590b36f [thermostat] Fix on_boot_restore_from DEFAULT_PRESET validation bypass (#15383) 2026-04-02 19:08:43 +00:00
Kevin Ahrendt da8d9d9c2d [audio] use microFLAC library for decoding (#15372) 2026-04-02 11:37:14 -04:00
Kevin Ahrendt b8a9d327f0 [media_player] Add enqueue action (#14775) 2026-04-02 10:40:19 -04:00
a359ecaaf4 [zigbee] print logs after reporting info update (#13916)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com>
2026-04-02 14:12:20 +00:00
J. Nick Koston c21c7dd292 [mitsubishi_cn105] Fix test grouping conflict with uart package (#15366) 2026-04-02 09:12:38 -04:00
Edward Firmo 34295fbd69 [nextion] Collapse nested namespace to esphome::nextion (#15367) 2026-04-02 00:25:54 -10:00
J. Nick Koston 93e9ccbf15 Merge remote-tracking branch 'origin/api/peel-first-write-iteration' into integration 2026-04-01 23:34:47 -10:00
J. Nick Koston 8ffdaacdcb [api] Add missing this-> prefix on member access in noise frame helper 2026-04-01 23:33:08 -10:00
J. Nick Koston e4ba7c77b7 Merge remote-tracking branch 'origin/api/peel-first-write-iteration' into integration 2026-04-01 23:29:54 -10:00
J. Nick Koston e20f5c2cf5 [api] Pass payload_size and message_type directly to encrypt_noise_message_
Avoids constructing a MessageInfo in write_protobuf_packet just to
pass two fields through.
2026-04-01 23:27:28 -10:00
J. Nick Koston 32241bee78 Merge remote-tracking branch 'origin/api/peel-first-write-iteration' into integration 2026-04-01 23:24:12 -10:00
J. Nick Koston 0d6602818c [api] Inline temp variables in write_protobuf_packet
msg_start and msg_len are single-use register temporaries — pass
the expressions directly to write_raw_fast_buf_.
2026-04-01 23:23:47 -10:00
J. Nick Koston d55f5b9b77 Merge remote-tracking branch 'origin/api/peel-first-write-iteration' into integration 2026-04-01 23:14:29 -10:00
J. Nick Koston adaab73761 [api] Pass payload_size and message_type directly to write_plaintext_header
Avoids constructing a MessageInfo in write_protobuf_packet just to
pass two fields through.
2026-04-01 23:13:33 -10:00
J. Nick Koston a1a1bee060 Merge remote-tracking branch 'origin/api/peel-first-write-iteration' into integration 2026-04-01 22:59:27 -10:00
J. Nick Koston 3f9d8ccf98 [api] Fix clang-tidy: rename varint helpers, remove unused function
Drop trailing underscore from static functions (readability-identifier-naming)
and remove unused plaintext_header_length.
2026-04-01 22:58:08 -10:00
J. Nick Koston 3ca5e9a3f5 [api] Extract inline varint encoders as named ALWAYS_INLINE helpers
Move the inline varint byte writes into encode_varint_16_ and
encode_varint_8_ for readability. Same generated code since both
are ALWAYS_INLINE.
2026-04-01 22:47:13 -10:00
J. Nick Koston a8c6c55de2 [api] Inline varint encoding in write_plaintext_header
Replace two out-of-line encode_varint_to_buffer calls with direct
byte writes using the already-computed varint lengths. Eliminates
function call overhead (register save/restore) from the batch loop
and removes the 34-byte out-of-line encode_varint_to_buffer function
which had no other callers.
2026-04-01 22:43:58 -10:00
J. Nick Koston 1f455e7737 adjust 2026-04-01 22:32:08 -10:00
J. Nick Koston 6576ebc294 [api] Update stale comments in write_protobuf_messages 2026-04-01 22:31:58 -10:00
J. Nick Koston ebefe76362 adjust 2026-04-01 22:30:48 -10:00
J. Nick Koston cdf1adaa39 [api] Eliminate nullptr branch from write_protobuf_messages loop
Pre-compute the first message's header length before the loop to
initialize write_start/write_end. The first loop iteration naturally
skips memmove since src == write_end.

Extract varint_encoded_length_16/8 and plaintext_header_length as
reusable inline helpers from write_plaintext_header.
2026-04-01 22:20:56 -10:00
J. Nick Koston 06bc9462f1 [api] Deduplicate header code in plaintext write_protobuf_messages
Use a single loop for all messages instead of separate first-message
and loop paths. The first iteration skips memmove via the null check.
Eliminates duplicated write_plaintext_header inlining, reducing flash
from 326 to 229 bytes (-30%) while keeping the 64-byte stack frame.
2026-04-01 22:10:17 -10:00
J. Nick Koston f0edf10f95 [api] Pack batch messages contiguously for write() instead of writev()
Replace StaticVector<iovec> + writev() scatter-gather in the batch write
path with contiguous single-buffer write() calls.

Plaintext: compact messages via memmove to close 0-3 byte varint header
gaps, then write_raw_fast_buf_. Noise: messages are already contiguous
(fixed 7-byte header + 16-byte MAC fills all reserved space), switch
directly to write_raw_fast_buf_.

Fix LOG_PACKET_SENDING to log after write/enqueue to prevent re-entrant
log sends from corrupting the shared buffer before data is sent.
Consolidate the macro to api_frame_helper.cpp and expose via out-of-line
log_packet_sending_() helper.

Remove write_raw_fast_iov_ (no remaining callers) and change
encrypt_noise_message_ to return uint16_t length instead of iovec.
2026-04-01 21:45:18 -10:00
J. Nick Koston c84d697319 Merge remote-tracking branch 'upstream/dev' into integration 2026-04-01 17:42:13 -10:00
J. Nick Koston 0a9d36b09d Merge branch 'dev' into api/peel-first-write-iteration 2026-04-01 17:19:11 -10:00
J. Nick Koston 3fbf0f0c01 [api] Simplify encode_to_buffer to single resize call (#15355) 2026-04-02 03:13:09 +00:00
J. Nick Koston 1436d034bf [api] Inline DeferredBatch::add_item to eliminate push_back call barrier (#15353) 2026-04-02 03:11:47 +00:00
J. Nick Koston 08c7b3afbd [esp32_ble_tracker] Reduce scan cycle log spam (#15365) 2026-04-01 16:53:53 -10:00
J. Nick Koston 0df38cc62a Merge branch 'dev' into api/peel-first-write-iteration 2026-04-01 16:34:53 -10:00
J. Nick Koston 8d573fd3c9 Merge remote-tracking branch 'upstream/reduce-ble-tracker-log-spam' into integration 2026-04-01 16:17:44 -10:00
J. Nick Koston 195efdc963 [esp32_ble_tracker] Reduce scan cycle log spam by changing to verbose level 2026-04-01 16:16:51 -10:00
J. Nick Koston f36d78e09c [core] Force inline Component::get_component_log_str() (#15363) 2026-04-01 16:15:00 -10:00
J. Nick Koston be56be5201 [core] Reduce runtime_stats measurement overhead (#15359) 2026-04-01 16:14:45 -10:00
J. Nick Koston 7954a770bd Merge branch 'dev' into api/peel-first-write-iteration 2026-04-01 16:12:46 -10:00
J. Nick Koston bcc7b8f490 [api] Add send_sensor_state benchmarks (#15352) 2026-04-01 16:12:02 -10:00