J. Nick Koston
27a16ca97c
[api] Use local pointer in encode_small_varint to avoid aliased pos_ stores
2026-04-05 18:54:39 -10:00
J. Nick Koston
883a300785
[api] Add encode_small_varint helper for single-byte tag+value encoding
...
Replace two separate write_raw_byte calls with a single
encode_small_varint(tag, value) call that writes both bytes
with one bounds check. Used for enum fields with max < 128.
2026-04-05 18:53:48 -10:00
J. Nick Koston
5a6330e366
[api] Remove redundant uint32_t cast in enum raw byte writes
2026-04-05 18:51:14 -10:00
J. Nick Koston
5c178eab63
[api] Optimize encode for non-forced enum fields with single-byte tags
...
When an enum field has max_value < 128 and a single-byte tag, emit
inline write_raw_byte calls instead of calling encode_uint32, which
avoids encode_field_raw and encode_varint_raw function call overhead.
2026-04-05 18:50:23 -10:00
J. Nick Koston
acd2fc3711
[api] Use multiply instead of loop for constant-size repeated enums
...
When a repeated enum field has a constant size per element (max < 128),
emit size * constant instead of iterating. This fixes unused variable
warnings from clang-tidy and generates more efficient code.
2026-04-05 18:29:01 -10:00
J. Nick Koston
0fc3664441
[api] Auto-derive max_value for enum fields in protobuf codegen
...
The protobuf code generator already parses all enum definitions and
knows every enum's maximum value. Use this to automatically apply the
max_value < 128 optimization to all enum fields, eliminating the need
for manual annotation.
Since every enum in api.proto has max < 128, all 58 enum field size
calculations now use constant arithmetic instead of calling varint
size functions.
Builds on #15424 which introduced the max_value optimization.
2026-04-05 18:16:14 -10:00
Jonathan Swoboda
7644f17cf6
[at581x] Fix codegen crash when using lambdas for frequency/time/power ( #15468 )
2026-04-06 00:05:04 -04:00
J. Nick Koston
1de94c1a84
[api] Add max_value proto option for constant-size varint codegen ( #15424 )
2026-04-05 18:02:06 -10:00
J. Nick Koston
10f08e0802
[esp8266] Add crash handler for post-mortem diagnostics ( #15465 )
2026-04-06 03:30:56 +00:00
Jonathan Swoboda
aac74f4c94
[ags10] Fix wrong type passed to cg.templatable for set_zero_point mode ( #15467 )
2026-04-05 22:48:00 -04:00
Keith Burzinski and Claude Opus 4.6
07f6be679f
[esp32] Add signed app verification without hardware secure boot ( #15357 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-05 21:20:48 -05:00
J. Nick Koston
ea0ce710a8
[api] Split Noise handshake state_action_ to reduce stack pressure ( #15464 )
2026-04-05 13:55:06 -10:00
J. Nick Koston
155657f1cc
[mcp23xxx][pi4ioe5v6408] Disable loop when all pins are outputs ( #15460 )
2026-04-05 13:26:55 -10:00
J. Nick Koston
0f2d8656ad
[esp32_ble] Skip dropped count memw when queue is empty ( #15422 )
2026-04-05 13:26:40 -10:00
J. Nick Koston
30d1230a17
[button] Downgrade press logging from DEBUG to VERBOSE ( #15408 )
2026-04-05 13:26:21 -10:00
J. Nick Koston
83a4edbea1
[select] [switch] Downgrade control path logging from DEBUG to VERBOSE ( #15406 )
2026-04-05 13:26:08 -10:00
J. Nick Koston
f193bab60b
[api] Add ListEntities benchmarks for sensor, binary_sensor, and light ( #15427 )
2026-04-05 13:25:50 -10:00
Tomer27cz
f01762ea44
[ci] move import to function ( #15440 )
2026-04-05 19:17:52 -04:00
Andrew Rankin
f23843130e
[lvgl] option to enable LVGL's built-in dark theme ( #15389 )
2026-04-06 09:07:42 +10:00
c7a163441e
[ethernet] Add interface configuration variable for esp-idf ( #10285 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org >
2026-04-05 20:57:41 +00:00
ae9068a4c4
[internal_temperature] Add support for LN882X (Lightning LN882H) ( #15370 )
...
Co-authored-by: Bl00d-B0b <Bl00d-B0b@users.noreply.github.com >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-04-05 09:17:12 -10:00
J. Nick Koston
dae8ea1b04
[mcp23xxx][pi4ioe5v6408] Add optional interrupt pin to eliminate polling ( #15445 )
2026-04-05 08:26:39 -10:00
Javier Peletier
2d7eb116f2
[spi] Enable host-platform builds for unit testing ( #15188 )
2026-04-05 20:11:49 +10:00
J. Nick Koston
9ea27e68ee
[pcf8574][pca9554] Disable loop when all pins are outputs ( #15455 )
2026-04-04 22:52:40 -10:00
Clyde Stubbs and Jonathan Swoboda
4d2062282e
[mipi_spi] Run spi final validation ( #15418 )
...
Co-authored-by: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com >
2026-04-04 21:11:49 -04:00
J. Nick Koston
2d9a42e4ba
[pcf8574][pca9554] Add optional interrupt pin to eliminate polling ( #15444 )
2026-04-04 13:56:21 -10:00
830517a98f
[mitsubishi_cn105] Add climate component for Mitsubishi A/C units with CN105 connector (Part 3) ( #15437 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
Co-authored-by: J. Nick Koston <nick+github@koston.org >
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
2026-04-04 12:40:05 -10:00
Clyde Stubbs
1a1725f958
[esp32] Clean build when sdkconfig options change ( #15439 )
2026-04-04 09:11:29 -04:00
J. Nick Koston
297f9c134f
[time] Use set_interval for CronTrigger instead of loop() ( #15433 )
2026-04-04 01:07:16 -10:00
J. Nick Koston
f51871fa6b
[total_daily_energy] Replace loop() with timeout-based midnight reset ( #15432 )
2026-04-04 00:37:50 -10:00
J. Nick Koston
9ee5089891
[time] Support */N syntax in cron expressions ( #15434 )
2026-04-04 00:30:41 -10:00
J. Nick Koston
b0d39aedd3
[hlw8012] Change periodic sensor reading logs to LOGV ( #15431 )
2026-04-04 00:30:29 -10:00
Clyde Stubbs
89de00e7ce
[online_image] Clear LVGL dsc when image size changes. ( #15360 )
2026-04-04 17:04:01 +11:00
alorente and clydebarrow
53b6528cc5
[epaper_spi] Allow runtime rotation change ( #15419 )
...
Co-authored-by: clydebarrow <2366188+clydebarrow@users.noreply.github.com >
2026-04-04 16:02:15 +10:00
Boris Krivonog
16ae753317
[mitsubishi_cn105] Add climate component for Mitsubishi A/C units with CN105 connector (Part 2) ( #15358 )
2026-04-03 19:44:04 -10:00
J. Nick Koston
2337767c38
[modbus_controller] Fix format specifier warnings ( #15429 )
2026-04-03 16:37:31 -10:00
J. Nick Koston
4f2290d548
[web_server] Disable loop when no SSE clients are connected ( #15428 )
2026-04-03 16:37:20 -10:00
Clyde Stubbs
7ab26a4fe0
[ili9xxx][st7735] Add deprecation warnings ( #15416 )
2026-04-04 13:21:58 +11:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
533eeabf1d
Bump aioesphomeapi from 44.8.1 to 44.9.0 ( #15425 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-03 23:17:49 +00:00
Bonne Eggleston and J. Nick Koston
c6bb1fe141
[modbus] Add integration tests for server and server via controller ( #14845 )
...
Co-authored-by: J. Nick Koston <nick@home-assistant.io >
2026-04-03 20:24:02 +00:00
dependabot[bot] and dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
f8f65c1a7b
Bump click from 8.3.1 to 8.3.2 ( #15421 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-03 09:42:37 -10:00
J. Nick Koston
d90e2a6a9a
[core] Use __builtin_ctz for FiniteSetMask bit scanning ( #15400 )
2026-04-03 08:28:54 -10:00
J. Nick Koston
4969fd6e99
[light] Use reciprocal multiply in normalize_color ( #15401 )
2026-04-03 08:28:41 -10:00
J. Nick Koston
95683b7416
[light] Pass LightTraits to avoid redundant virtual get_traits() calls ( #15403 )
2026-04-03 08:28:29 -10:00
J. Nick Koston
38f4dc3217
[uptime] Pass known length to publish_state to avoid redundant strlen ( #15410 )
2026-04-03 08:28:07 -10:00
J. Nick Koston
f2a0d9943d
[benchmarks] Add host platform benchmarks for text_sensor and button ( #15407 )
2026-04-03 08:27:55 -10:00
J. Nick Koston
ea0227a206
[benchmarks] Add host platform benchmarks for number, select, and switch ( #15405 )
2026-04-03 08:27:44 -10:00
J. Nick Koston
5a23669747
[scheduler] Fix unrealistic scheduler benchmarks missing periodic drain ( #15396 )
2026-04-03 08:27:29 -10:00
J. Nick Koston
2a5933e4f7
[host] Add graceful shutdown on SIGINT/SIGTERM ( #15387 )
2026-04-03 08:27:13 -10:00
Jonathan Swoboda
6fecd72049
[ezo_pmp] Fix change_i2c_address action using wrong template type ( #15393 )
2026-04-03 08:35:16 -04:00